@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.
- package/dist/agents/AgentIcon.js +1 -1
- package/dist/agents/AgentModelLabel.js +1 -1
- package/dist/agents/accounts.js +1 -1
- package/dist/chat/attachments.js +1 -1
- package/dist/chat/forks.js +1 -1
- package/dist/chat/logic/limit.js +1 -1
- package/dist/chat/logic/scrubber.js +1 -1
- package/dist/chat/logic/selection-switch.d.ts +6 -0
- package/dist/chat/logic/selection-switch.js +42 -0
- package/dist/chat/logic/timeline-target.d.ts +1 -1
- package/dist/chat/logic/timeline.d.ts +6 -1
- package/dist/chat/logic/timeline.js +16 -2
- package/dist/chat/logic/tool-looks.js +1 -1
- package/dist/chat/logic/tools.js +1 -1
- package/dist/chat/logic/workflow.js +1 -1
- package/dist/chat/preferences.js +1 -1
- package/dist/chat/runtime-modes.js +1 -1
- package/dist/chat/send-key.js +1 -1
- package/dist/chat/stash.js +2 -2
- package/dist/chat/subagent-list.js +1 -1
- package/dist/chat/ui/AccountPill.js +3 -3
- package/dist/chat/ui/BookmarkMarker.js +6 -6
- package/dist/chat/ui/BookmarkSubmenu.js +5 -5
- package/dist/chat/ui/ChatActivity.js +15 -14
- package/dist/chat/ui/CodeBlock.js +9 -7
- package/dist/chat/ui/Composer.js +13 -13
- package/dist/chat/ui/ComposerInput.d.ts +1 -1
- package/dist/chat/ui/ComposerInput.js +35 -18
- package/dist/chat/ui/DiffPool.js +1 -1
- package/dist/chat/ui/EditDiff.js +2 -2
- package/dist/chat/ui/GoalDock.js +5 -5
- package/dist/chat/ui/ImageView.js +4 -4
- package/dist/chat/ui/LimitState.js +12 -12
- package/dist/chat/ui/Markdown.d.ts +1 -1
- package/dist/chat/ui/Markdown.js +11 -10
- package/dist/chat/ui/MermaidBlock.js +7 -6
- package/dist/chat/ui/MessageActions.js +7 -7
- package/dist/chat/ui/ModelMarks.js +2 -2
- package/dist/chat/ui/Pickers.d.ts +1 -1
- package/dist/chat/ui/Pickers.js +32 -27
- package/dist/chat/ui/PromptComposer.d.ts +1 -1
- package/dist/chat/ui/PromptComposer.js +5 -5
- package/dist/chat/ui/PromptEditor.js +3 -3
- package/dist/chat/ui/QuoteButton.js +2 -2
- package/dist/chat/ui/ReferenceChip.js +3 -3
- package/dist/chat/ui/ReferenceTrail.js +2 -2
- package/dist/chat/ui/ResumeCompactionDock.js +3 -3
- package/dist/chat/ui/RunSettings.js +11 -11
- package/dist/chat/ui/Scrubber.js +4 -4
- package/dist/chat/ui/SessionLine.js +2 -2
- package/dist/chat/ui/ShellCommand.d.ts +1 -1
- package/dist/chat/ui/ShellCommand.js +2 -2
- package/dist/chat/ui/SubagentControls.js +3 -3
- package/dist/chat/ui/SubagentInfo.js +5 -5
- package/dist/chat/ui/SubagentStopButton.js +2 -2
- package/dist/chat/ui/SubagentTimeline.js +18 -16
- package/dist/chat/ui/Timeline.js +231 -145
- package/dist/chat/ui/TimelineMenu.js +7 -7
- package/dist/chat/ui/UnifiedDiff.js +2 -2
- package/dist/chat/ui/VisualDialogs.js +1 -1
- package/dist/chat/ui/VisualFrame.js +4 -4
- package/dist/chat/ui/WorkflowAgentLine.d.ts +1 -1
- package/dist/chat/ui/WorkflowAgentLine.js +3 -3
- package/dist/chat/ui/chip-clipboard.d.ts +1 -1
- package/dist/chat/ui/composer/ComposerControls.d.ts +1 -1
- package/dist/chat/ui/composer/ComposerControls.js +4 -4
- package/dist/chat/ui/composer/ComposerMenu.js +5 -4
- package/dist/chat/ui/composer/DraftParts.js +2 -2
- package/dist/chat/ui/composer/QueuedMessages.js +2 -2
- package/dist/chat/ui/composer/chip-paste.d.ts +1 -1
- package/dist/chat/ui/composer/chips.d.ts +1 -1
- package/dist/chat/ui/composer/chips.js +2 -2
- package/dist/chat/ui/composer/key-handler.js +1 -1
- package/dist/chat/ui/composer/placeholder.js +1 -1
- package/dist/chat/ui/composer/use-composer-menus.d.ts +1 -1
- package/dist/chat/ui/composer/use-composer-menus.js +1 -1
- package/dist/chat/ui/composer/use-composer-submit.d.ts +1 -1
- package/dist/chat/ui/composer/use-draft-files.d.ts +2 -2
- package/dist/chat/ui/composer/use-draft-files.js +1 -1
- package/dist/chat/ui/composer/use-effort-stepper.js +1 -1
- package/dist/chat/ui/composer/use-prompt-menus.d.ts +2 -2
- package/dist/chat/ui/composer/use-prompt-menus.js +1 -1
- package/dist/chat/ui/diff/ApprovalReview.js +2 -2
- package/dist/chat/ui/diff/DiffOmitted.js +1 -1
- package/dist/chat/ui/diff/DiffStack.js +2 -2
- package/dist/chat/ui/diff/EditorEditDiff.d.ts +1 -1
- package/dist/chat/ui/diff/EditorEditDiff.js +5 -5
- package/dist/chat/ui/diff/EditorPatchDiff.d.ts +1 -1
- package/dist/chat/ui/diff/EditorPatchDiff.js +1 -1
- package/dist/chat/ui/diff/LegacyEditDiff.js +47 -31
- package/dist/chat/ui/diff/LegacyUnifiedDiff.js +93 -69
- package/dist/chat/ui/diff/RawDiff.js +54 -35
- package/dist/chat/ui/diff/syntax-runtime.d.ts +1 -1
- package/dist/chat/ui/highlighter.d.ts +1 -1
- package/dist/chat/ui/highlighter.js +1 -1
- package/dist/chat/ui/icons.js +1 -1
- package/dist/chat/ui/intelligent-ui/UiBlockFrame.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/UiBlockFrame.js +4 -4
- package/dist/chat/ui/intelligent-ui/UiFallbackPart.js +2 -2
- package/dist/chat/ui/intelligent-ui/UiReply.d.ts +2 -2
- package/dist/chat/ui/intelligent-ui/UiReply.js +8 -8
- package/dist/chat/ui/intelligent-ui/node-text.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/render-context.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/renderers/chart.js +28 -15
- package/dist/chat/ui/intelligent-ui/renderers/choices.js +4 -4
- package/dist/chat/ui/intelligent-ui/renderers/content.js +6 -6
- package/dist/chat/ui/intelligent-ui/renderers/data.js +104 -87
- package/dist/chat/ui/intelligent-ui/renderers/inputs.js +3 -3
- package/dist/chat/ui/intelligent-ui/renderers/links.js +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/map-view.js +4 -4
- package/dist/chat/ui/intelligent-ui/renderers/map.js +3 -3
- package/dist/chat/ui/intelligent-ui/renderers/structure.js +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/text.js +5 -5
- package/dist/chat/ui/intelligent-ui/tones.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/use-ui-links.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/use-ui-links.js +2 -2
- package/dist/chat/ui/intelligent-ui/use-ui-queries.js +1 -1
- package/dist/chat/ui/reference-icons.d.ts +1 -1
- package/dist/chat/ui/reference-icons.js +2 -2
- package/dist/chat/ui/reply-context.d.ts +1 -1
- package/dist/chat/ui/rows/ForksRow.js +3 -3
- package/dist/chat/ui/rows/GeneratedImageRow.js +5 -5
- package/dist/chat/ui/rows/MessageRows.d.ts +6 -1
- package/dist/chat/ui/rows/MessageRows.js +151 -22
- package/dist/chat/ui/rows/Rows.js +39 -21
- package/dist/chat/ui/rows/SubagentRow.js +16 -16
- package/dist/chat/ui/rows/TaskRow.js +3 -3
- package/dist/chat/ui/rows/VisualRow.js +2 -2
- package/dist/chat/ui/rows/WorkRows.d.ts +2 -2
- package/dist/chat/ui/rows/WorkRows.js +37 -25
- package/dist/chat/ui/rows/WorkflowRow.js +8 -8
- package/dist/chat/ui/use-diff-source-tokens.js +1 -1
- package/dist/chat/ui/visual-theme.d.ts +1 -1
- package/dist/chat/ui/visual-theme.js +2 -2
- package/dist/chat/workflow-list.js +1 -1
- package/dist/host.d.ts +4 -4
- package/dist/host.js +1 -1
- package/dist/lazy.js +1 -1
- package/dist/locales/en/agent-chat.d.ts +4 -0
- package/dist/locales/en/agent-chat.js +4 -0
- package/dist/locales/nl/agent-chat.d.ts +4 -0
- package/dist/locales/nl/agent-chat.js +4 -0
- package/dist/port-transport.js +1 -1
- package/dist/prompts/logic/subjects.d.ts +1 -1
- package/dist/prompts/ui/ApprovalBody.js +16 -7
- package/dist/prompts/ui/PromptActions.js +2 -2
- package/dist/prompts/ui/PromptCard.js +5 -4
- package/dist/prompts/ui/PromptView.js +1 -1
- package/dist/prompts/ui/QuestionBody.js +4 -4
- package/dist/providers/AccountDetail.js +4 -4
- package/dist/providers/AccountOrderList.js +2 -2
- package/dist/providers/AccountVariables.js +3 -3
- package/dist/providers/AddAccountForm.js +6 -6
- package/dist/providers/CliDetail.js +8 -8
- package/dist/providers/InstallPage.js +3 -3
- package/dist/providers/ProviderList.js +2 -2
- package/dist/providers/ProvidersPane.d.ts +1 -1
- package/dist/providers/ProvidersPane.js +5 -5
- package/dist/providers/install-steps.d.ts +1 -1
- package/dist/settings/sections.d.ts +2 -2
- package/dist/state/chats.js +1 -1
- package/dist/state/usage.js +2 -2
- package/dist/theme.css +4 -4
- package/dist/transport.d.ts +1 -1
- package/dist/usage/LimitsList.js +4 -4
- package/dist/usage/UsageBreakdown.js +5 -5
- package/dist/usage/UsageChart.js +1 -1
- package/dist/usage/UsageDialog.js +1 -1
- package/dist/usage/UsageLimits.js +6 -6
- package/dist/usage/UsageLimitsCard.js +2 -2
- package/dist/usage/UsagePage.js +200 -189
- package/dist/usage/UsagePane.js +2 -2
- package/dist/usage/UsageSummary.js +1 -1
- package/dist/usage/UsageTiles.js +1 -1
- package/dist/usage/limit-groups.js +2 -2
- package/dist/usage/summary.js +1 -1
- package/package.json +9 -8
- package/src/agents/AgentIcon.tsx +1 -1
- package/src/agents/AgentModelLabel.tsx +2 -2
- package/src/agents/ProviderLogo.tsx +1 -1
- package/src/agents/accounts.ts +1 -1
- package/src/agents/option-words.ts +1 -1
- package/src/chat/attachments.ts +1 -1
- package/src/chat/bookmarks.ts +1 -1
- package/src/chat/drafts.ts +1 -1
- package/src/chat/forks.ts +1 -1
- package/src/chat/logic/fork.ts +1 -1
- package/src/chat/logic/limit.ts +1 -1
- package/src/chat/logic/scrubber.ts +1 -1
- package/src/chat/logic/selection-switch.ts +47 -0
- package/src/chat/logic/timeline-copy.ts +1 -1
- package/src/chat/logic/timeline-target.ts +1 -1
- package/src/chat/logic/timeline.ts +28 -4
- package/src/chat/logic/tool-looks.ts +1 -1
- package/src/chat/logic/tools.ts +1 -1
- package/src/chat/logic/workflow.ts +1 -1
- package/src/chat/pending-prompts.ts +1 -1
- package/src/chat/preferences.ts +1 -1
- package/src/chat/reading-width.ts +1 -1
- package/src/chat/runtime-modes.ts +1 -1
- package/src/chat/send-key.ts +1 -1
- package/src/chat/stash.ts +2 -2
- package/src/chat/subagent-conversation.ts +1 -1
- package/src/chat/subagent-list.ts +1 -1
- package/src/chat/subagent-view.ts +1 -1
- package/src/chat/thumbnails.ts +1 -1
- package/src/chat/ui/AccountPill.tsx +4 -4
- package/src/chat/ui/BookmarkMarker.tsx +6 -6
- package/src/chat/ui/BookmarkSubmenu.tsx +5 -5
- package/src/chat/ui/ChatActivity.tsx +15 -15
- package/src/chat/ui/CodeBlock.tsx +10 -8
- package/src/chat/ui/Composer.tsx +13 -13
- package/src/chat/ui/ComposerInput.tsx +10 -2
- package/src/chat/ui/DiffPool.tsx +1 -1
- package/src/chat/ui/EditDiff.tsx +3 -4
- package/src/chat/ui/GoalDock.tsx +6 -6
- package/src/chat/ui/ImageView.tsx +4 -4
- package/src/chat/ui/LimitState.tsx +13 -13
- package/src/chat/ui/Markdown.tsx +12 -12
- package/src/chat/ui/MermaidBlock.tsx +6 -6
- package/src/chat/ui/MessageActions.tsx +7 -7
- package/src/chat/ui/ModelMarks.tsx +2 -2
- package/src/chat/ui/Pickers.tsx +10 -10
- package/src/chat/ui/PromptComposer.tsx +6 -6
- package/src/chat/ui/PromptEditor.tsx +4 -4
- package/src/chat/ui/QuoteButton.tsx +2 -2
- package/src/chat/ui/ReferenceChip.tsx +3 -3
- package/src/chat/ui/ReferenceTrail.tsx +2 -2
- package/src/chat/ui/ResumeCompactionDock.tsx +3 -3
- package/src/chat/ui/RunSettings.tsx +13 -13
- package/src/chat/ui/Scrubber.tsx +4 -4
- package/src/chat/ui/SessionLine.tsx +2 -2
- package/src/chat/ui/ShellCommand.tsx +2 -2
- package/src/chat/ui/SubagentControls.tsx +3 -3
- package/src/chat/ui/SubagentInfo.tsx +5 -5
- package/src/chat/ui/SubagentStopButton.tsx +3 -3
- package/src/chat/ui/SubagentTimeline.tsx +20 -17
- package/src/chat/ui/Timeline.tsx +232 -143
- package/src/chat/ui/TimelineMenu.tsx +7 -7
- package/src/chat/ui/UnifiedDiff.tsx +3 -3
- package/src/chat/ui/VisualDialogs.tsx +2 -2
- package/src/chat/ui/VisualFrame.tsx +4 -4
- package/src/chat/ui/WorkflowAgentLine.tsx +4 -4
- package/src/chat/ui/chip-clipboard.ts +1 -1
- package/src/chat/ui/composer/ComposerControls.tsx +4 -4
- package/src/chat/ui/composer/ComposerMenu.tsx +6 -6
- package/src/chat/ui/composer/DraftParts.tsx +2 -2
- package/src/chat/ui/composer/QueuedMessages.tsx +2 -2
- package/src/chat/ui/composer/chip-paste.ts +1 -1
- package/src/chat/ui/composer/chips.ts +2 -2
- package/src/chat/ui/composer/key-handler.ts +2 -2
- package/src/chat/ui/composer/placeholder.ts +1 -1
- package/src/chat/ui/composer/use-chat-controls.ts +1 -1
- package/src/chat/ui/composer/use-compaction-offer.ts +1 -1
- package/src/chat/ui/composer/use-composer-menus.ts +2 -2
- package/src/chat/ui/composer/use-composer-submit.ts +2 -2
- package/src/chat/ui/composer/use-draft-files.ts +3 -3
- package/src/chat/ui/composer/use-effort-stepper.ts +2 -2
- package/src/chat/ui/composer/use-pending-requests.ts +1 -1
- package/src/chat/ui/composer/use-prompt-menus.ts +3 -3
- package/src/chat/ui/composer/use-take-back.ts +1 -1
- package/src/chat/ui/diff/ApprovalReview.tsx +3 -3
- package/src/chat/ui/diff/DiffOmitted.tsx +1 -1
- package/src/chat/ui/diff/DiffStack.tsx +2 -2
- package/src/chat/ui/diff/EditorEditDiff.tsx +5 -5
- package/src/chat/ui/diff/EditorPatchDiff.tsx +1 -1
- package/src/chat/ui/diff/LegacyDiffPool.tsx +1 -1
- package/src/chat/ui/diff/LegacyEditDiff.tsx +18 -9
- package/src/chat/ui/diff/LegacyUnifiedDiff.tsx +24 -13
- package/src/chat/ui/diff/RawDiff.tsx +8 -5
- package/src/chat/ui/diff/syntax-runtime.ts +1 -1
- package/src/chat/ui/highlighter.ts +1 -1
- package/src/chat/ui/icons.tsx +2 -2
- package/src/chat/ui/intelligent-ui/UiBlockFrame.tsx +5 -5
- package/src/chat/ui/intelligent-ui/UiFallbackPart.tsx +2 -2
- package/src/chat/ui/intelligent-ui/UiReply.tsx +18 -18
- package/src/chat/ui/intelligent-ui/node-text.ts +1 -1
- package/src/chat/ui/intelligent-ui/render-context.ts +1 -1
- package/src/chat/ui/intelligent-ui/renderers/chart.tsx +15 -7
- package/src/chat/ui/intelligent-ui/renderers/choices.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/content.tsx +7 -7
- package/src/chat/ui/intelligent-ui/renderers/data.tsx +8 -7
- package/src/chat/ui/intelligent-ui/renderers/inputs.tsx +3 -3
- package/src/chat/ui/intelligent-ui/renderers/links.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/map-view.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/map.tsx +5 -5
- package/src/chat/ui/intelligent-ui/renderers/structure.tsx +3 -3
- package/src/chat/ui/intelligent-ui/renderers/text.tsx +5 -5
- package/src/chat/ui/intelligent-ui/tones.ts +1 -1
- package/src/chat/ui/intelligent-ui/use-ui-links.ts +2 -2
- package/src/chat/ui/intelligent-ui/use-ui-queries.ts +1 -1
- package/src/chat/ui/reference-icons.ts +2 -2
- package/src/chat/ui/reply-context.ts +1 -1
- package/src/chat/ui/rows/ForksRow.tsx +3 -3
- package/src/chat/ui/rows/GeneratedImageRow.tsx +7 -7
- package/src/chat/ui/rows/MessageRows.tsx +57 -33
- package/src/chat/ui/rows/RowContainer.tsx +1 -1
- package/src/chat/ui/rows/Rows.tsx +7 -4
- package/src/chat/ui/rows/SubagentRow.tsx +16 -16
- package/src/chat/ui/rows/TaskRow.tsx +4 -4
- package/src/chat/ui/rows/VisualRow.tsx +2 -2
- package/src/chat/ui/rows/WorkRows.tsx +44 -32
- package/src/chat/ui/rows/WorkflowRow.tsx +9 -9
- package/src/chat/ui/rows/row-rhythm.ts +1 -1
- package/src/chat/ui/use-diff-source-tokens.ts +1 -1
- package/src/chat/ui/visual-theme.ts +2 -2
- package/src/chat/workflow-list.ts +1 -1
- package/src/host.ts +6 -6
- package/src/lazy.tsx +1 -1
- package/src/locales/en/agent-chat.ts +4 -0
- package/src/locales/nl/agent-chat.ts +4 -0
- package/src/port-transport.ts +1 -1
- package/src/prompts/logic/subjects.ts +1 -1
- package/src/prompts/ui/ApprovalBody.tsx +19 -9
- package/src/prompts/ui/PromptActions.tsx +2 -2
- package/src/prompts/ui/PromptCard.tsx +4 -4
- package/src/prompts/ui/PromptView.tsx +1 -1
- package/src/prompts/ui/QuestionBody.tsx +5 -5
- package/src/providers/AccountDetail.tsx +5 -5
- package/src/providers/AccountOrderList.tsx +2 -2
- package/src/providers/AccountVariables.tsx +4 -4
- package/src/providers/AddAccountForm.tsx +7 -7
- package/src/providers/CliDetail.tsx +9 -9
- package/src/providers/InstallPage.tsx +4 -4
- package/src/providers/ProviderList.tsx +4 -4
- package/src/providers/ProvidersPane.tsx +7 -7
- package/src/providers/account-actions.ts +1 -1
- package/src/providers/install-steps.ts +1 -1
- package/src/providers/parts.tsx +1 -1
- package/src/providers/provider-abilities.ts +1 -1
- package/src/providers/provider-groups.ts +1 -1
- package/src/providers/variables.ts +1 -1
- package/src/settings/sections.ts +2 -2
- package/src/state/chats.ts +2 -2
- package/src/state/provider-accounts.ts +1 -1
- package/src/state/providers.ts +1 -1
- package/src/state/usage.ts +2 -2
- package/src/theme.css +4 -4
- package/src/transport.ts +1 -1
- package/src/usage/LimitsList.tsx +5 -5
- package/src/usage/UsageBreakdown.tsx +6 -6
- package/src/usage/UsageChart.tsx +2 -2
- package/src/usage/UsageDialog.tsx +2 -2
- package/src/usage/UsageLimits.tsx +7 -7
- package/src/usage/UsageLimitsCard.tsx +2 -2
- package/src/usage/UsagePage.tsx +5 -5
- package/src/usage/UsagePane.tsx +2 -2
- package/src/usage/UsageSummary.tsx +2 -2
- package/src/usage/UsageTiles.tsx +1 -1
- package/src/usage/limit-groups.ts +2 -2
- package/src/usage/limits.ts +1 -1
- package/src/usage/summary.ts +1 -1
- package/dist/chat/logic/json.d.ts +0 -1
- package/dist/chat/logic/json.js +0 -4
- 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
|
|
249
|
-
|
|
250
|
-
.chat-table {
|
|
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);
|
|
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); }
|
package/dist/transport.d.ts
CHANGED
|
@@ -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']>;
|
package/dist/usage/LimitsList.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
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 {
|
|
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 {
|
|
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';
|
package/dist/usage/UsageChart.js
CHANGED
|
@@ -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 {
|
|
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 {
|
|
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. */
|
package/dist/usage/UsagePage.js
CHANGED
|
@@ -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(
|
|
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] !==
|
|
526
|
-
t11 =
|
|
527
|
-
$[27] =
|
|
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] !==
|
|
534
|
-
t12 =
|
|
535
|
-
|
|
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] !==
|
|
544
|
-
t13 =
|
|
545
|
-
|
|
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] !==
|
|
552
|
-
t14 =
|
|
553
|
-
|
|
554
|
-
|
|
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 = $[
|
|
550
|
+
t14 = $[34];
|
|
562
551
|
}
|
|
563
552
|
let t15;
|
|
564
|
-
if ($[36] !==
|
|
565
|
-
t15 =
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
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 =
|
|
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] !==
|
|
584
|
-
t17 =
|
|
585
|
-
|
|
586
|
-
|
|
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 = $[
|
|
582
|
+
t17 = $[41];
|
|
596
583
|
}
|
|
597
584
|
let t18;
|
|
598
|
-
if ($[44] !==
|
|
599
|
-
t18 =
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
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 =
|
|
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] !==
|
|
618
|
-
t20 =
|
|
619
|
-
|
|
620
|
-
|
|
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 = $[
|
|
616
|
+
t20 = $[49];
|
|
630
617
|
}
|
|
631
618
|
let t21;
|
|
632
|
-
if ($[52] !==
|
|
633
|
-
t21 =
|
|
634
|
-
|
|
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
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
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:
|
|
646
|
+
label: t22,
|
|
645
647
|
busy: loading,
|
|
646
648
|
onClick: reload,
|
|
647
|
-
disabled:
|
|
649
|
+
disabled: t23
|
|
648
650
|
});
|
|
649
|
-
$[
|
|
650
|
-
$[
|
|
651
|
-
$[
|
|
652
|
-
$[
|
|
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] !==
|
|
667
|
-
t25 =
|
|
668
|
-
|
|
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] !==
|
|
678
|
-
t26 = /*#__PURE__*/
|
|
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,
|
|
682
|
+
children: [pickers, t15, t18, t21, t24, t26]
|
|
681
683
|
});
|
|
682
|
-
$[
|
|
683
|
-
$[
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
686
|
-
$[
|
|
687
|
-
$[
|
|
688
|
-
$[
|
|
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
|
-
|
|
692
|
+
t27 = $[71];
|
|
691
693
|
}
|
|
692
|
-
if ($[
|
|
693
|
-
|
|
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: [
|
|
697
|
+
children: [t13, t27]
|
|
696
698
|
});
|
|
697
|
-
$[
|
|
698
|
-
$[
|
|
699
|
-
$[
|
|
699
|
+
$[72] = t13;
|
|
700
|
+
$[73] = t27;
|
|
701
|
+
$[74] = t10;
|
|
700
702
|
} else {
|
|
701
|
-
|
|
703
|
+
t10 = $[74];
|
|
702
704
|
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
$[75] =
|
|
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
|
-
|
|
714
|
+
t4 = $[77];
|
|
711
715
|
}
|
|
712
|
-
if ($[
|
|
713
|
-
|
|
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
|
-
$[
|
|
720
|
-
$[
|
|
721
|
-
$[
|
|
723
|
+
$[78] = noRoots;
|
|
724
|
+
$[79] = t;
|
|
725
|
+
$[80] = t5;
|
|
722
726
|
} else {
|
|
723
|
-
|
|
727
|
+
t5 = $[80];
|
|
724
728
|
}
|
|
725
|
-
if ($[
|
|
726
|
-
|
|
727
|
-
$[
|
|
728
|
-
$[
|
|
729
|
-
$[
|
|
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
|
-
|
|
735
|
+
t6 = $[83];
|
|
732
736
|
}
|
|
733
|
-
if ($[
|
|
734
|
-
|
|
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
|
-
$[
|
|
741
|
-
$[
|
|
742
|
-
$[
|
|
743
|
-
$[
|
|
744
|
+
$[84] = answering;
|
|
745
|
+
$[85] = shown;
|
|
746
|
+
$[86] = t;
|
|
747
|
+
$[87] = t7;
|
|
744
748
|
} else {
|
|
745
|
-
|
|
749
|
+
t7 = $[87];
|
|
746
750
|
}
|
|
747
|
-
|
|
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] =
|
|
784
|
-
$[18] =
|
|
785
|
-
$[19] =
|
|
786
|
-
$[20] =
|
|
787
|
-
$[21] =
|
|
788
|
-
$[22] =
|
|
789
|
-
$[23] =
|
|
790
|
-
$[24] =
|
|
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
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
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 ($[
|
|
810
|
-
t11 = /*#__PURE__*/
|
|
811
|
-
|
|
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 = $[
|
|
814
|
+
t11 = $[88];
|
|
823
815
|
}
|
|
824
816
|
let t12;
|
|
825
|
-
if ($[94] !==
|
|
826
|
-
t12 = /*#__PURE__*/_jsxs(
|
|
827
|
-
className:
|
|
828
|
-
|
|
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
|
-
$[
|
|
831
|
-
$[
|
|
832
|
-
$[
|
|
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
|
-
|
|
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);
|
package/dist/usage/UsagePane.js
CHANGED
|
@@ -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'];
|