@adecore/agents-react 0.62.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.
- package/dist/agents/AccountDot.js +1 -1
- package/dist/agents/AgentIcon.js +43 -51
- package/dist/agents/accounts.d.ts +3 -6
- package/dist/agents/model-name.d.ts +2 -1
- package/dist/agents/model-requirement.d.ts +2 -1
- package/dist/agents/provider-paths.d.ts +1 -1
- package/dist/agents/status-look.d.ts +3 -2
- package/dist/chat/account-choice.d.ts +2 -1
- package/dist/chat/account-choice.js +2 -1
- package/dist/chat/actions.d.ts +1 -3
- package/dist/chat/actions.js +2 -2
- package/dist/chat/attachments.js +0 -2
- package/dist/chat/bookmarks.d.ts +1 -1
- package/dist/chat/chat-references.d.ts +1 -30
- package/dist/chat/chat-references.js +0 -12
- package/dist/chat/drafts.js +1 -1
- package/dist/chat/forks.js +0 -2
- package/dist/chat/guards.js +0 -1
- package/dist/chat/index.d.ts +20 -24
- package/dist/chat/index.js +6 -6
- package/dist/chat/logic/ansi.d.ts +2 -1
- package/dist/chat/logic/bookmarks.d.ts +1 -1
- package/dist/chat/logic/command-looks.d.ts +4 -3
- package/dist/chat/logic/command-looks.js +0 -2
- package/dist/chat/logic/context-usage.d.ts +2 -2
- package/dist/chat/logic/context-usage.js +1 -1
- package/dist/chat/logic/effort.d.ts +2 -1
- package/dist/chat/logic/embedded-code.d.ts +4 -3
- package/dist/chat/logic/embedded-code.js +0 -1
- package/dist/chat/logic/fork.d.ts +11 -6
- package/dist/chat/logic/fork.js +12 -9
- package/dist/chat/logic/generated-image.d.ts +2 -1
- package/dist/chat/logic/generated-image.js +0 -2
- package/dist/chat/logic/goal.d.ts +2 -1
- package/dist/chat/logic/limit.d.ts +2 -1
- package/dist/chat/logic/picker-entries.d.ts +4 -10
- package/dist/chat/logic/picker-entries.js +2 -13
- package/dist/chat/logic/resume-compaction.js +0 -1
- package/dist/chat/logic/scrubber.d.ts +5 -5
- package/dist/chat/logic/scrubber.js +1 -3
- package/dist/chat/logic/steer.d.ts +2 -0
- package/dist/chat/logic/steer.js +4 -0
- package/dist/chat/logic/thought.js +0 -1
- package/dist/chat/logic/thread-cards.d.ts +4 -4
- package/dist/chat/logic/thread-cards.js +1 -1
- package/dist/chat/logic/timeline-copy.d.ts +1 -1
- package/dist/chat/logic/timeline-copy.js +0 -2
- package/dist/chat/logic/timeline-target.d.ts +4 -3
- package/dist/chat/logic/timeline-target.js +0 -1
- package/dist/chat/logic/timeline.d.ts +3 -133
- package/dist/chat/logic/timeline.js +0 -2
- package/dist/chat/logic/tool-catalog.d.ts +2 -1
- package/dist/chat/logic/tool-looks.d.ts +4 -3
- package/dist/chat/logic/tool-looks.js +0 -1
- package/dist/chat/logic/tools.d.ts +3 -2
- package/dist/chat/logic/tools.js +11 -32
- package/dist/chat/logic/visual-height.js +0 -1
- package/dist/chat/logic/welcome.d.ts +2 -1
- package/dist/chat/logic/workflow.d.ts +3 -2
- package/dist/chat/logic/workflow.js +0 -1
- package/dist/chat/mentions.d.ts +3 -3
- package/dist/chat/mentions.js +1 -2
- package/dist/chat/pending-prompts.d.ts +1 -1
- package/dist/chat/preferences.js +1 -2
- package/dist/chat/prompt-hold.js +0 -1
- package/dist/chat/prompts/index.d.ts +11 -0
- package/dist/{prompts → chat/prompts}/index.js +2 -0
- package/dist/{prompts → chat/prompts}/logic/keys.d.ts +4 -3
- package/dist/{prompts → chat/prompts}/logic/prompts.d.ts +2 -26
- package/dist/{prompts → chat/prompts}/logic/prompts.js +1 -1
- package/dist/{prompts → chat/prompts}/logic/subjects.d.ts +2 -38
- package/dist/{prompts → chat/prompts}/logic/useFocusAfterAnswer.d.ts +2 -1
- package/dist/{prompts → chat/prompts}/logic/usePromptSession.d.ts +2 -2
- package/dist/{prompts → chat/prompts}/logic/usePromptSession.js +2 -1
- package/dist/{prompts → chat/prompts}/ui/ApprovalBody.d.ts +1 -5
- package/dist/{prompts → chat/prompts}/ui/ApprovalBody.js +5 -6
- package/dist/{prompts → chat/prompts}/ui/PromptActions.d.ts +2 -1
- package/dist/{prompts → chat/prompts}/ui/PromptActions.js +0 -1
- package/dist/{prompts → chat/prompts}/ui/PromptCard.d.ts +1 -1
- package/dist/{prompts → chat/prompts}/ui/PromptCard.js +1 -1
- package/dist/{prompts → chat/prompts}/ui/PromptView.d.ts +1 -1
- package/dist/{prompts → chat/prompts}/ui/PromptView.js +4 -2
- package/dist/{prompts → chat/prompts}/ui/QuestionBody.d.ts +1 -1
- package/dist/{prompts → chat/prompts}/ui/QuestionBody.js +2 -2
- package/dist/chat/reading-width.js +2 -1
- package/dist/chat/recent-messages.d.ts +2 -6
- package/dist/chat/recent-messages.js +1 -1
- package/dist/chat/send-key.js +0 -1
- package/dist/chat/stash.d.ts +3 -2
- package/dist/chat/stash.js +1 -1
- package/dist/chat/subagent-conversation.d.ts +0 -1
- package/dist/chat/subagent-conversation.js +1 -1
- package/dist/chat/subagent-list.d.ts +3 -3
- package/dist/chat/subagent-list.js +2 -6
- package/dist/chat/subagent-view.d.ts +1 -1
- package/dist/chat/subagent-view.js +0 -1
- package/dist/chat/tag-suggestions.d.ts +3 -4
- package/dist/chat/tag-suggestions.js +3 -3
- package/dist/chat/thumbnails.d.ts +2 -1
- package/dist/chat/thumbnails.js +0 -1
- package/dist/chat/timeline-flash.d.ts +1 -1
- package/dist/chat/ui/BookmarkMarker.js +1 -1
- package/dist/chat/ui/BookmarkSubmenu.js +2 -2
- package/dist/chat/ui/ChatActivity.js +8 -48
- package/dist/chat/ui/CodeBlock.js +1 -1
- package/dist/chat/ui/Composer.d.ts +1 -1
- package/dist/chat/ui/Composer.js +174 -209
- package/dist/chat/ui/ComposerInput.d.ts +1 -1
- package/dist/chat/ui/ComposerInput.js +1 -1
- package/dist/chat/ui/EditDiff.js +2 -3
- package/dist/chat/ui/GoalDock.js +1 -1
- package/dist/chat/ui/HostMenuItems.d.ts +1 -1
- package/dist/chat/ui/HostMenuItems.js +0 -1
- package/dist/chat/ui/ImageView.d.ts +3 -2
- package/dist/chat/ui/LimitState.js +2 -2
- package/dist/chat/ui/Markdown.d.ts +1 -1
- package/dist/chat/ui/Markdown.js +1 -2
- package/dist/chat/ui/MermaidBlock.js +1 -1
- package/dist/chat/ui/MessageActions.d.ts +1 -1
- package/dist/chat/ui/MessageActions.js +94 -88
- package/dist/chat/ui/Pickers.d.ts +1 -1
- package/dist/chat/ui/Pickers.js +4 -3
- package/dist/chat/ui/PromptComposer.d.ts +1 -1
- package/dist/chat/ui/PromptComposer.js +9 -8
- package/dist/chat/ui/PromptEditor.d.ts +1 -1
- package/dist/chat/ui/PromptEditor.js +1 -1
- package/dist/chat/ui/ReferenceChip.js +1 -1
- package/dist/chat/ui/ReferenceTrail.d.ts +2 -2
- package/dist/chat/ui/RunSettings.js +3 -3
- package/dist/chat/ui/SessionLine.d.ts +1 -1
- package/dist/chat/ui/SessionLine.js +2 -1
- package/dist/chat/ui/ShellCommand.d.ts +1 -1
- package/dist/chat/ui/ShellCommand.js +1 -3
- package/dist/chat/ui/SubagentInfo.js +4 -3
- package/dist/chat/ui/SubagentStopButton.js +1 -1
- package/dist/chat/ui/SubagentTimeline.js +2 -2
- package/dist/chat/ui/Timeline.js +6 -4
- package/dist/chat/ui/TimelineMenu.js +125 -119
- package/dist/chat/ui/UnifiedDiff.js +2 -3
- package/dist/chat/ui/VisualFrame.d.ts +3 -2
- package/dist/chat/ui/VisualFrame.js +1 -1
- package/dist/chat/ui/chip-clipboard.d.ts +1 -2
- package/dist/chat/ui/chip-clipboard.js +1 -1
- package/dist/chat/ui/code-theme.d.ts +1 -1
- package/dist/chat/ui/code-theme.js +2 -2
- package/dist/chat/ui/composer/ComposerControls.d.ts +0 -3
- package/dist/chat/ui/composer/ComposerControls.js +60 -215
- package/dist/chat/ui/composer/ComposerMenu.js +1 -1
- package/dist/chat/ui/composer/ComposerStatusLine.d.ts +1 -1
- package/dist/chat/ui/composer/DraftParts.js +0 -1
- package/dist/chat/ui/composer/chip-paste.d.ts +1 -1
- package/dist/chat/ui/composer/chip-paste.js +0 -1
- package/dist/chat/ui/composer/chips.d.ts +4 -3
- package/dist/chat/ui/composer/chips.js +0 -1
- package/dist/chat/ui/composer/editor.d.ts +2 -1
- package/dist/chat/ui/composer/key-handler.d.ts +1 -1
- package/dist/chat/ui/composer/key-handler.js +0 -1
- package/dist/chat/ui/composer/keys.d.ts +4 -3
- package/dist/chat/ui/composer/keys.js +0 -4
- package/dist/chat/ui/composer/placeholder.js +1 -1
- package/dist/chat/ui/composer/prompt-picks.d.ts +2 -2
- package/dist/chat/ui/composer/prompt-picks.js +1 -0
- package/dist/chat/ui/composer/use-chat-controls.js +2 -2
- package/dist/chat/ui/composer/use-composer-menus.d.ts +0 -1
- package/dist/chat/ui/composer/use-composer-menus.js +2 -2
- package/dist/chat/ui/composer/use-composer-submit.d.ts +1 -1
- package/dist/chat/ui/composer/use-composer-submit.js +1 -1
- package/dist/chat/ui/composer/use-continuable-turn.js +0 -1
- package/dist/chat/ui/composer/use-draft-files.d.ts +1 -1
- package/dist/chat/ui/composer/use-draft-files.js +1 -1
- package/dist/chat/ui/composer/use-pending-requests.d.ts +1 -1
- package/dist/chat/ui/composer/use-prompt-menus.d.ts +6 -5
- package/dist/chat/ui/composer/use-prompt-menus.js +3 -2
- package/dist/chat/ui/composer/use-take-back.js +1 -2
- package/dist/chat/ui/diff/EditorEditDiff.js +1 -1
- package/dist/chat/ui/diff/LegacyDiffPool.js +1 -1
- package/dist/chat/ui/diff/LegacyEditDiff.js +1 -1
- package/dist/chat/ui/diff/LegacyUnifiedDiff.js +1 -1
- package/dist/chat/ui/diff/ReviewDiff.js +1 -2
- package/dist/chat/ui/diff/diff-source-budget.d.ts +0 -7
- package/dist/chat/ui/diff/diff-source-budget.js +1 -1
- package/dist/chat/ui/diff/review-plan.d.ts +2 -2
- package/dist/chat/ui/diff/review-plan.js +1 -1
- package/dist/chat/ui/diff/syntax-runtime.d.ts +1 -1
- package/dist/chat/ui/diff-theme.js +2 -2
- package/dist/chat/ui/file-links.d.ts +1 -1
- package/dist/chat/ui/file-links.js +1 -2
- package/dist/chat/ui/highlighter.d.ts +1 -1
- package/dist/chat/ui/highlighter.js +1 -2
- package/dist/chat/ui/index.d.ts +9 -17
- package/dist/chat/ui/index.js +3 -9
- package/dist/chat/ui/intelligent-ui/UiBlockFrame.d.ts +2 -1
- package/dist/chat/ui/intelligent-ui/UiBlockFrame.js +1 -1
- package/dist/chat/ui/intelligent-ui/UiFallbackPart.d.ts +2 -1
- package/dist/chat/ui/intelligent-ui/UiReply.js +1 -1
- package/dist/chat/ui/intelligent-ui/chart-data.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 +0 -2
- package/dist/chat/ui/intelligent-ui/renderers/choices.js +1 -1
- package/dist/chat/ui/intelligent-ui/renderers/content.d.ts +2 -1
- package/dist/chat/ui/intelligent-ui/renderers/content.js +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/inputs.js +0 -1
- package/dist/chat/ui/intelligent-ui/renderers/links.d.ts +1 -5
- package/dist/chat/ui/intelligent-ui/renderers/links.js +1 -1
- package/dist/chat/ui/intelligent-ui/renderers/map-slots.d.ts +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/map-slots.js +1 -1
- package/dist/chat/ui/intelligent-ui/renderers/map-style.d.ts +3 -8
- package/dist/chat/ui/intelligent-ui/renderers/map-style.js +3 -5
- package/dist/chat/ui/intelligent-ui/renderers/map-view.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/renderers/map-view.js +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/map.js +3 -4
- package/dist/chat/ui/intelligent-ui/reply-parts.d.ts +2 -1
- package/dist/chat/ui/intelligent-ui/table-data.d.ts +2 -1
- package/dist/chat/ui/intelligent-ui/use-ui-links.js +1 -1
- package/dist/chat/ui/intelligent-ui/use-ui-queries.js +1 -1
- package/dist/chat/ui/markdown-blocks.js +0 -1
- package/dist/chat/ui/named-chip-look.d.ts +1 -1
- package/dist/chat/ui/named-chip-look.js +1 -1
- package/dist/chat/ui/reference-icons.d.ts +2 -2
- package/dist/chat/ui/reference-lookup.d.ts +2 -2
- package/dist/chat/ui/rehype-fade.js +0 -1
- package/dist/chat/ui/reveal.d.ts +2 -3
- package/dist/chat/ui/reveal.js +2 -2
- package/dist/chat/ui/rows/ForksRow.js +1 -1
- package/dist/chat/ui/rows/GeneratedImageRow.js +2 -2
- package/dist/chat/ui/rows/MessageRows.d.ts +1 -1
- package/dist/chat/ui/rows/MessageRows.js +2 -3
- package/dist/chat/ui/rows/RowContainer.d.ts +3 -2
- package/dist/chat/ui/rows/RowContainer.js +1 -1
- package/dist/chat/ui/rows/Rows.d.ts +1 -1
- package/dist/chat/ui/rows/SubagentRow.d.ts +2 -2
- package/dist/chat/ui/rows/SubagentRow.js +6 -6
- package/dist/chat/ui/rows/TaskRow.d.ts +1 -1
- package/dist/chat/ui/rows/VisualRow.js +1 -1
- package/dist/chat/ui/rows/WorkRows.d.ts +3 -2
- package/dist/chat/ui/rows/WorkRows.js +4 -8
- package/dist/chat/ui/rows/WorkflowRow.js +1 -1
- package/dist/chat/ui/rows/row-rhythm.d.ts +1 -1
- package/dist/chat/ui/rows/row-rhythm.js +1 -0
- package/dist/chat/ui/thread-references.d.ts +0 -2
- package/dist/chat/ui/thread-references.js +3 -3
- package/dist/chat/ui/use-diff-source-tokens.js +1 -1
- package/dist/chat/ui/useToggleSet.d.ts +2 -1
- package/dist/chat/ui/visual-theme.js +1 -1
- package/dist/chat/visual-bridge.js +0 -1
- package/dist/chat/waiting-on.js +1 -1
- package/dist/chat/workflow-list.d.ts +2 -1
- package/dist/{chat/chat-client.d.ts → chat-client.d.ts} +2 -2
- package/dist/{chat/chat-client.js → chat-client.js} +2 -2
- package/dist/chat-sink.d.ts +20 -0
- package/dist/chat-sink.js +1 -0
- package/dist/{ui → host}/PlainTextarea.d.ts +1 -1
- package/dist/{host-hooks.d.ts → host/host-hooks.d.ts} +3 -6
- package/dist/{host-hooks.js → host/host-hooks.js} +2 -13
- package/dist/{host.d.ts → host/host.d.ts} +27 -25
- package/dist/{host.js → host/host.js} +65 -32
- package/dist/host/prompts.d.ts +61 -0
- package/dist/host/prompts.js +1 -0
- package/dist/host/references.d.ts +31 -0
- package/dist/host/references.js +12 -0
- package/dist/host/timeline-row.d.ts +133 -0
- package/dist/host/timeline-row.js +1 -0
- package/dist/images.d.ts +1 -1
- package/dist/images.js +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.js +1 -3
- package/dist/locales/en/agent-chat.d.ts +1 -1
- package/dist/locales/en/agent-chat.js +1 -1
- package/dist/locales/nl/agent-chat.d.ts +1 -1
- package/dist/locales/nl/agent-chat.js +1 -1
- package/dist/locales.d.ts +1 -1
- package/dist/{chat/persisted-json.d.ts → persisted-json.d.ts} +2 -1
- package/dist/{chat/persisted-json.js → persisted-json.js} +1 -1
- package/dist/providers/AccountColors.js +1 -2
- package/dist/providers/AccountDetail.js +2 -3
- package/dist/providers/AccountVariables.js +1 -1
- package/dist/providers/AddAccountForm.js +1 -1
- package/dist/providers/CliDetail.js +2 -3
- package/dist/providers/InstallPage.js +2 -3
- package/dist/providers/ProviderList.js +0 -1
- package/dist/providers/ProvidersPane.js +2 -3
- package/dist/providers/account-actions.d.ts +2 -3
- package/dist/providers/account-actions.js +1 -1
- package/dist/providers/index.d.ts +2 -4
- package/dist/providers/index.js +1 -1
- package/dist/providers/install-steps.js +0 -1
- package/dist/providers/provider-abilities.d.ts +1 -2
- package/dist/providers/provider-abilities.js +0 -5
- package/dist/providers/variables.js +0 -1
- package/dist/scope.d.ts +1 -1
- package/dist/settings/sections.d.ts +2 -1
- package/dist/state/chats.d.ts +2 -20
- package/dist/state/chats.js +0 -2
- package/dist/state/index.d.ts +4 -3
- package/dist/state/provider-accounts.js +0 -1
- package/dist/state/usage.d.ts +2 -2
- package/dist/state/usage.js +1 -1
- package/dist/storage.d.ts +4 -3
- package/dist/testing/prompts.d.ts +1 -1
- package/dist/usage/ChartLogo.js +0 -1
- package/dist/usage/LimitsList.d.ts +1 -1
- package/dist/usage/LimitsList.js +3 -7
- package/dist/usage/UsageBreakdown.js +1 -5
- package/dist/usage/UsageLimits.js +2 -3
- package/dist/usage/UsagePage.js +3 -3
- package/dist/usage/UsageTiles.js +0 -1
- package/dist/usage/format.d.ts +1 -2
- package/dist/usage/format.js +0 -2
- package/dist/usage/index.d.ts +2 -3
- package/dist/usage/index.js +1 -2
- package/dist/usage/limit-groups.d.ts +0 -1
- package/dist/usage/limit-groups.js +0 -2
- package/dist/usage/limits.js +0 -1
- package/dist/usage/summary.d.ts +3 -2
- package/dist/usage/summary.js +0 -1
- package/package.json +19 -12
- package/src/agents/AccountDot.tsx +1 -1
- package/src/agents/AgentIcon.tsx +2 -2
- package/src/agents/accounts.ts +2 -5
- package/src/agents/model-name.ts +1 -1
- package/src/agents/model-requirement.ts +1 -1
- package/src/agents/provider-paths.ts +1 -1
- package/src/agents/status-look.ts +2 -2
- package/src/chat/account-choice.ts +3 -11
- package/src/chat/actions.ts +2 -2
- package/src/chat/attachments.ts +0 -2
- package/src/chat/bookmarks.ts +1 -1
- package/src/chat/chat-references.ts +1 -64
- package/src/chat/drafts.ts +1 -1
- package/src/chat/forks.ts +0 -2
- package/src/chat/guards.ts +0 -2
- package/src/chat/index.ts +21 -38
- package/src/chat/logic/ansi.ts +1 -1
- package/src/chat/logic/bookmarks.ts +1 -1
- package/src/chat/logic/command-looks.ts +3 -7
- package/src/chat/logic/context-usage.ts +2 -2
- package/src/chat/logic/effort.ts +1 -1
- package/src/chat/logic/embedded-code.ts +3 -7
- package/src/chat/logic/fork.ts +23 -13
- package/src/chat/logic/generated-image.ts +1 -3
- package/src/chat/logic/goal.ts +1 -1
- package/src/chat/logic/limit.ts +1 -1
- package/src/chat/logic/picker-entries.ts +5 -19
- package/src/chat/logic/resume-compaction.ts +0 -1
- package/src/chat/logic/scrubber.ts +6 -9
- package/src/chat/logic/steer.ts +6 -0
- package/src/chat/logic/thought.ts +0 -1
- package/src/chat/logic/thread-cards.ts +4 -4
- package/src/chat/logic/timeline-copy.ts +1 -3
- package/src/chat/logic/timeline-target.ts +3 -6
- package/src/chat/logic/timeline.ts +4 -85
- package/src/chat/logic/tool-catalog.ts +1 -2
- package/src/chat/logic/tool-looks.ts +3 -6
- package/src/chat/logic/tools.ts +6 -25
- package/src/chat/logic/visual-height.ts +0 -1
- package/src/chat/logic/welcome.ts +1 -1
- package/src/chat/logic/workflow.ts +2 -3
- package/src/chat/mentions.ts +3 -5
- package/src/chat/pending-prompts.ts +2 -2
- package/src/chat/preferences.ts +1 -2
- package/src/chat/prompt-hold.ts +0 -1
- package/src/chat/prompts/index.ts +14 -0
- package/src/{prompts → chat/prompts}/logic/keys.ts +3 -3
- package/src/{prompts → chat/prompts}/logic/prompts.ts +3 -24
- package/src/{prompts → chat/prompts}/logic/subjects.ts +3 -42
- package/src/{prompts → chat/prompts}/logic/useFocusAfterAnswer.ts +1 -1
- package/src/{prompts → chat/prompts}/logic/usePromptSession.ts +4 -4
- package/src/{prompts → chat/prompts}/ui/ApprovalBody.tsx +6 -7
- package/src/{prompts → chat/prompts}/ui/PromptActions.tsx +1 -2
- package/src/{prompts → chat/prompts}/ui/PromptCard.tsx +2 -2
- package/src/{prompts → chat/prompts}/ui/PromptView.tsx +6 -4
- package/src/{prompts → chat/prompts}/ui/QuestionBody.tsx +3 -3
- package/src/chat/reading-width.ts +2 -1
- package/src/chat/recent-messages.ts +3 -3
- package/src/chat/send-key.ts +0 -1
- package/src/chat/stash.ts +3 -3
- package/src/chat/subagent-conversation.ts +1 -1
- package/src/chat/subagent-list.ts +4 -9
- package/src/chat/subagent-view.ts +1 -2
- package/src/chat/tag-suggestions.ts +5 -5
- package/src/chat/thumbnails.ts +1 -3
- package/src/chat/timeline-flash.ts +1 -1
- package/src/chat/timeline-scroll.ts +0 -2
- package/src/chat/ui/BookmarkMarker.tsx +1 -1
- package/src/chat/ui/BookmarkSubmenu.tsx +2 -2
- package/src/chat/ui/ChatActivity.tsx +8 -18
- package/src/chat/ui/CodeBlock.tsx +1 -1
- package/src/chat/ui/Composer.tsx +5 -15
- package/src/chat/ui/ComposerInput.tsx +2 -2
- package/src/chat/ui/EditDiff.tsx +2 -3
- package/src/chat/ui/GoalDock.tsx +1 -1
- package/src/chat/ui/HostMenuItems.tsx +1 -2
- package/src/chat/ui/ImageView.tsx +2 -2
- package/src/chat/ui/LimitState.tsx +2 -2
- package/src/chat/ui/Markdown.tsx +1 -2
- package/src/chat/ui/MermaidBlock.tsx +1 -2
- package/src/chat/ui/MessageActions.tsx +5 -3
- package/src/chat/ui/Pickers.tsx +4 -4
- package/src/chat/ui/PromptComposer.tsx +9 -8
- package/src/chat/ui/PromptEditor.tsx +2 -2
- package/src/chat/ui/ReferenceChip.tsx +1 -1
- package/src/chat/ui/ReferenceTrail.tsx +2 -2
- package/src/chat/ui/RunSettings.tsx +4 -2
- package/src/chat/ui/SessionLine.tsx +2 -2
- package/src/chat/ui/ShellCommand.tsx +1 -4
- package/src/chat/ui/SubagentInfo.tsx +4 -3
- package/src/chat/ui/SubagentStopButton.tsx +1 -1
- package/src/chat/ui/SubagentTimeline.tsx +2 -2
- package/src/chat/ui/Timeline.tsx +7 -6
- package/src/chat/ui/TimelineMenu.tsx +4 -2
- package/src/chat/ui/UnifiedDiff.tsx +2 -3
- package/src/chat/ui/VisualFrame.tsx +3 -3
- package/src/chat/ui/chip-clipboard.ts +2 -2
- package/src/chat/ui/code-theme.ts +2 -2
- package/src/chat/ui/composer/ComposerControls.tsx +8 -59
- package/src/chat/ui/composer/ComposerMenu.tsx +2 -2
- package/src/chat/ui/composer/ComposerStatusLine.tsx +1 -1
- package/src/chat/ui/composer/DraftParts.tsx +0 -1
- package/src/chat/ui/composer/chip-paste.ts +1 -2
- package/src/chat/ui/composer/chips.ts +3 -4
- package/src/chat/ui/composer/editor.ts +1 -1
- package/src/chat/ui/composer/key-handler.ts +1 -2
- package/src/chat/ui/composer/keys.ts +3 -8
- package/src/chat/ui/composer/placeholder.ts +1 -1
- package/src/chat/ui/composer/prompt-picks.ts +3 -2
- package/src/chat/ui/composer/use-chat-controls.ts +2 -2
- 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-continuable-turn.ts +0 -1
- package/src/chat/ui/composer/use-draft-files.ts +2 -2
- package/src/chat/ui/composer/use-pending-requests.ts +1 -1
- package/src/chat/ui/composer/use-prompt-menus.ts +6 -9
- package/src/chat/ui/composer/use-take-back.ts +1 -3
- package/src/chat/ui/diff/EditorEditDiff.tsx +1 -1
- package/src/chat/ui/diff/LegacyDiffPool.tsx +1 -1
- package/src/chat/ui/diff/LegacyEditDiff.tsx +1 -1
- package/src/chat/ui/diff/LegacyUnifiedDiff.tsx +1 -1
- package/src/chat/ui/diff/ReviewDiff.tsx +1 -2
- package/src/chat/ui/diff/diff-source-budget.ts +1 -1
- package/src/chat/ui/diff/review-plan.ts +2 -2
- package/src/chat/ui/diff/syntax-runtime.ts +1 -1
- package/src/chat/ui/diff-theme.ts +2 -2
- package/src/chat/ui/file-links.ts +1 -2
- package/src/chat/ui/highlighter.ts +1 -2
- package/src/chat/ui/index.ts +9 -39
- package/src/chat/ui/intelligent-ui/UiBlockFrame.tsx +2 -2
- package/src/chat/ui/intelligent-ui/UiFallbackPart.tsx +1 -1
- package/src/chat/ui/intelligent-ui/UiReply.tsx +1 -1
- package/src/chat/ui/intelligent-ui/chart-data.ts +1 -1
- package/src/chat/ui/intelligent-ui/render-context.ts +1 -1
- package/src/chat/ui/intelligent-ui/renderers/chart.tsx +0 -3
- package/src/chat/ui/intelligent-ui/renderers/choices.tsx +1 -1
- package/src/chat/ui/intelligent-ui/renderers/content.tsx +3 -3
- package/src/chat/ui/intelligent-ui/renderers/inputs.tsx +0 -1
- package/src/chat/ui/intelligent-ui/renderers/links.tsx +1 -1
- package/src/chat/ui/intelligent-ui/renderers/map-slots.ts +2 -2
- package/src/chat/ui/intelligent-ui/renderers/map-style.ts +5 -7
- package/src/chat/ui/intelligent-ui/renderers/map-view.tsx +2 -3
- package/src/chat/ui/intelligent-ui/renderers/map.tsx +3 -4
- package/src/chat/ui/intelligent-ui/reply-parts.ts +1 -1
- package/src/chat/ui/intelligent-ui/table-data.ts +1 -1
- package/src/chat/ui/intelligent-ui/use-ui-links.ts +1 -1
- package/src/chat/ui/intelligent-ui/use-ui-queries.ts +1 -1
- package/src/chat/ui/markdown-blocks.ts +0 -2
- package/src/chat/ui/named-chip-look.ts +1 -1
- package/src/chat/ui/reference-icons.ts +2 -2
- package/src/chat/ui/reference-lookup.ts +2 -2
- package/src/chat/ui/rehype-fade.ts +0 -1
- package/src/chat/ui/reveal.ts +3 -3
- package/src/chat/ui/rows/ForksRow.tsx +1 -1
- package/src/chat/ui/rows/GeneratedImageRow.tsx +2 -2
- package/src/chat/ui/rows/MessageRows.tsx +2 -3
- package/src/chat/ui/rows/RowContainer.tsx +3 -3
- package/src/chat/ui/rows/Rows.tsx +2 -2
- package/src/chat/ui/rows/SubagentRow.tsx +7 -8
- package/src/chat/ui/rows/TaskRow.tsx +1 -1
- package/src/chat/ui/rows/VisualRow.tsx +1 -1
- package/src/chat/ui/rows/WorkRows.tsx +6 -10
- package/src/chat/ui/rows/WorkflowRow.tsx +1 -1
- package/src/chat/ui/rows/row-rhythm.ts +2 -1
- package/src/chat/ui/thread-references.ts +3 -3
- package/src/chat/ui/use-diff-source-tokens.ts +1 -1
- package/src/chat/ui/useToggleSet.ts +1 -1
- package/src/chat/ui/visual-theme.ts +1 -1
- package/src/chat/visual-bridge.ts +0 -2
- package/src/chat/waiting-on.ts +1 -1
- package/src/chat/workflow-list.ts +1 -1
- package/src/{chat/chat-client.ts → chat-client.ts} +3 -3
- package/src/chat-sink.ts +37 -0
- package/src/{ui → host}/PlainTextarea.tsx +1 -1
- package/src/{host-hooks.ts → host/host-hooks.ts} +4 -20
- package/src/{host.ts → host/host.ts} +78 -42
- package/src/host/prompts.ts +62 -0
- package/src/host/references.ts +63 -0
- package/src/host/timeline-row.ts +85 -0
- package/src/images.ts +1 -1
- package/src/index.ts +6 -12
- package/src/locales/en/agent-chat.ts +1 -1
- package/src/locales/nl/agent-chat.ts +1 -1
- package/src/locales.ts +1 -1
- package/src/{chat/persisted-json.ts → persisted-json.ts} +2 -2
- package/src/providers/AccountColors.tsx +1 -2
- package/src/providers/AccountDetail.tsx +2 -4
- package/src/providers/AccountVariables.tsx +1 -1
- package/src/providers/AddAccountForm.tsx +1 -1
- package/src/providers/CliDetail.tsx +2 -3
- package/src/providers/InstallPage.tsx +2 -3
- package/src/providers/ProviderList.tsx +0 -1
- package/src/providers/ProvidersPane.tsx +2 -3
- package/src/providers/account-actions.ts +2 -2
- package/src/providers/index.ts +2 -14
- package/src/providers/install-steps.ts +0 -1
- package/src/providers/provider-abilities.ts +1 -7
- package/src/providers/variables.ts +0 -2
- package/src/scope.ts +1 -1
- package/src/settings/sections.ts +1 -1
- package/src/state/chats.ts +1 -40
- package/src/state/index.ts +4 -22
- package/src/state/provider-accounts.ts +0 -1
- package/src/state/usage.ts +5 -5
- package/src/storage.ts +3 -3
- package/src/testing/prompts.ts +1 -1
- package/src/usage/ChartLogo.tsx +0 -1
- package/src/usage/LimitsList.tsx +3 -11
- package/src/usage/UsageBreakdown.tsx +1 -5
- package/src/usage/UsageLimits.tsx +2 -3
- package/src/usage/UsagePage.tsx +3 -3
- package/src/usage/UsagePane.tsx +2 -2
- package/src/usage/UsageTiles.tsx +0 -1
- package/src/usage/format.ts +1 -6
- package/src/usage/index.ts +2 -3
- package/src/usage/limit-groups.ts +0 -4
- package/src/usage/limits.ts +0 -1
- package/src/usage/summary.ts +2 -5
- package/dist/agents/agent-marks.d.ts +0 -9
- package/dist/agents/agent-marks.js +0 -14
- package/dist/lazy.d.ts +0 -8
- package/dist/lazy.js +0 -63
- package/dist/prompts/index.d.ts +0 -9
- package/src/agents/agent-marks.ts +0 -28
- package/src/lazy.tsx +0 -76
- package/src/prompts/index.ts +0 -22
- /package/dist/{prompts → chat/prompts}/logic/focus.d.ts +0 -0
- /package/dist/{prompts → chat/prompts}/logic/focus.js +0 -0
- /package/dist/{prompts → chat/prompts}/logic/keys.js +0 -0
- /package/dist/{prompts → chat/prompts}/logic/subjects.js +0 -0
- /package/dist/{prompts → chat/prompts}/logic/useFocusAfterAnswer.js +0 -0
- /package/dist/{ui → host}/PlainTextarea.js +0 -0
- /package/src/{prompts → chat/prompts}/logic/focus.ts +0 -0
|
@@ -5,9 +5,10 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { Bookmark, Check, Copy, GitFork } from 'lucide-react';
|
|
6
6
|
import { useEffect, useState } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import { useChatHost } from '../../host.js';
|
|
8
|
+
import { useChatHost } from '../../host/host.js';
|
|
9
9
|
import { useChatScope } from '../../scope.js';
|
|
10
10
|
import { useChatRow, useChats } from '../../state/chats.js';
|
|
11
|
+
import { useProviders } from '../../state/providers.js';
|
|
11
12
|
import { placeBookmark } from '../bookmarks.js';
|
|
12
13
|
import { forkRefusal } from '../logic/fork.js';
|
|
13
14
|
import { markdownOf, messageTextOf } from '../logic/timeline-copy.js';
|
|
@@ -18,7 +19,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
18
19
|
const COPIED_MS = 1500;
|
|
19
20
|
/* Hidden actions keep their height, so hovering never forces the virtualizer to remeasure. */
|
|
20
21
|
export function MessageActions(t0) {
|
|
21
|
-
const $ = _c(
|
|
22
|
+
const $ = _c(67);
|
|
22
23
|
const {
|
|
23
24
|
chatId,
|
|
24
25
|
row
|
|
@@ -78,22 +79,24 @@ export function MessageActions(t0) {
|
|
|
78
79
|
t4 = $[8];
|
|
79
80
|
}
|
|
80
81
|
const bookmarked = t4 === true;
|
|
82
|
+
const providers = useProviders(_temp3);
|
|
81
83
|
let t5;
|
|
82
|
-
if ($[9] !== info || $[10] !==
|
|
83
|
-
t5 = turnId !== null && forkRefusal(info, turn) === null;
|
|
84
|
+
if ($[9] !== info || $[10] !== providers || $[11] !== turn || $[12] !== turnId) {
|
|
85
|
+
t5 = turnId !== null && forkRefusal(info, turn, providers) === null;
|
|
84
86
|
$[9] = info;
|
|
85
|
-
$[10] =
|
|
86
|
-
$[11] =
|
|
87
|
-
$[12] =
|
|
87
|
+
$[10] = providers;
|
|
88
|
+
$[11] = turn;
|
|
89
|
+
$[12] = turnId;
|
|
90
|
+
$[13] = t5;
|
|
88
91
|
} else {
|
|
89
|
-
t5 = $[
|
|
92
|
+
t5 = $[13];
|
|
90
93
|
}
|
|
91
94
|
const canFork = t5;
|
|
92
95
|
const [copied, setCopied] = useState(false);
|
|
93
96
|
const lookup = useReferenceLookup(chatId);
|
|
94
97
|
let t6;
|
|
95
98
|
let t7;
|
|
96
|
-
if ($[
|
|
99
|
+
if ($[14] !== copied) {
|
|
97
100
|
t6 = () => {
|
|
98
101
|
if (!copied) {
|
|
99
102
|
return;
|
|
@@ -102,16 +105,16 @@ export function MessageActions(t0) {
|
|
|
102
105
|
return () => clearTimeout(timer);
|
|
103
106
|
};
|
|
104
107
|
t7 = [copied];
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
108
|
+
$[14] = copied;
|
|
109
|
+
$[15] = t6;
|
|
110
|
+
$[16] = t7;
|
|
108
111
|
} else {
|
|
109
|
-
t6 = $[
|
|
110
|
-
t7 = $[
|
|
112
|
+
t6 = $[15];
|
|
113
|
+
t7 = $[16];
|
|
111
114
|
}
|
|
112
115
|
useEffect(t6, t7);
|
|
113
116
|
let t8;
|
|
114
|
-
if ($[
|
|
117
|
+
if ($[17] !== chatId || $[18] !== lookup || $[19] !== row || $[20] !== scope) {
|
|
115
118
|
t8 = plain => {
|
|
116
119
|
const item_1 = useChats.getState().byKey[scope.keyOf(chatId)]?.items[row.id];
|
|
117
120
|
const current = item_1?.kind === row.kind ? {
|
|
@@ -124,34 +127,34 @@ export function MessageActions(t0) {
|
|
|
124
127
|
setCopied(true);
|
|
125
128
|
}
|
|
126
129
|
};
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
130
|
+
$[17] = chatId;
|
|
131
|
+
$[18] = lookup;
|
|
132
|
+
$[19] = row;
|
|
133
|
+
$[20] = scope;
|
|
134
|
+
$[21] = t8;
|
|
132
135
|
} else {
|
|
133
|
-
t8 = $[
|
|
136
|
+
t8 = $[21];
|
|
134
137
|
}
|
|
135
138
|
const copy = t8;
|
|
136
139
|
let t9;
|
|
137
|
-
if ($[
|
|
140
|
+
if ($[22] !== t) {
|
|
138
141
|
t9 = t("timeline.actions.label");
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
142
|
+
$[22] = t;
|
|
143
|
+
$[23] = t9;
|
|
141
144
|
} else {
|
|
142
|
-
t9 = $[
|
|
145
|
+
t9 = $[23];
|
|
143
146
|
}
|
|
144
147
|
const t10 = row.kind === "user" && "mt-1.5 justify-end";
|
|
145
148
|
let t11;
|
|
146
|
-
if ($[
|
|
149
|
+
if ($[24] !== t10) {
|
|
147
150
|
t11 = clsx("flex h-7 items-center gap-2 opacity-0 transition-opacity group-has-focus-visible/message:opacity-100 group-hover/message:opacity-100", t10);
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
151
|
+
$[24] = t10;
|
|
152
|
+
$[25] = t11;
|
|
150
153
|
} else {
|
|
151
|
-
t11 = $[
|
|
154
|
+
t11 = $[25];
|
|
152
155
|
}
|
|
153
156
|
let t12;
|
|
154
|
-
if ($[
|
|
157
|
+
if ($[26] !== bookmarked || $[27] !== canFork || $[28] !== chatId || $[29] !== copied || $[30] !== copy || $[31] !== fork || $[32] !== hasText || $[33] !== host || $[34] !== row.id || $[35] !== scope || $[36] !== streaming || $[37] !== t || $[38] !== turnId) {
|
|
155
158
|
t12 = !streaming && /*#__PURE__*/_jsxs(ButtonGroup, {
|
|
156
159
|
render: /*#__PURE__*/_jsx("span", {}),
|
|
157
160
|
children: [!bookmarked && /*#__PURE__*/_jsx(IconButton, {
|
|
@@ -171,118 +174,121 @@ export function MessageActions(t0) {
|
|
|
171
174
|
onClick: e => copy(e.shiftKey)
|
|
172
175
|
})]
|
|
173
176
|
});
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
177
|
+
$[26] = bookmarked;
|
|
178
|
+
$[27] = canFork;
|
|
179
|
+
$[28] = chatId;
|
|
180
|
+
$[29] = copied;
|
|
181
|
+
$[30] = copy;
|
|
182
|
+
$[31] = fork;
|
|
183
|
+
$[32] = hasText;
|
|
184
|
+
$[33] = host;
|
|
185
|
+
$[34] = row.id;
|
|
186
|
+
$[35] = scope;
|
|
187
|
+
$[36] = streaming;
|
|
188
|
+
$[37] = t;
|
|
189
|
+
$[38] = turnId;
|
|
190
|
+
$[39] = t12;
|
|
188
191
|
} else {
|
|
189
|
-
t12 = $[
|
|
192
|
+
t12 = $[39];
|
|
190
193
|
}
|
|
191
194
|
let t13;
|
|
192
|
-
if ($[
|
|
195
|
+
if ($[40] !== chatId || $[41] !== host || $[42] !== row.id || $[43] !== row.item.text || $[44] !== row.kind) {
|
|
193
196
|
t13 = host.renderMessageActions?.({
|
|
194
197
|
chatId,
|
|
195
198
|
id: row.id,
|
|
196
199
|
kind: row.kind,
|
|
197
200
|
text: row.item.text
|
|
198
201
|
});
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
202
|
+
$[40] = chatId;
|
|
203
|
+
$[41] = host;
|
|
204
|
+
$[42] = row.id;
|
|
205
|
+
$[43] = row.item.text;
|
|
206
|
+
$[44] = row.kind;
|
|
207
|
+
$[45] = t13;
|
|
205
208
|
} else {
|
|
206
|
-
t13 = $[
|
|
209
|
+
t13 = $[45];
|
|
207
210
|
}
|
|
208
211
|
let t14;
|
|
209
|
-
if ($[
|
|
212
|
+
if ($[46] !== row.item.createdAt) {
|
|
210
213
|
t14 = formatDateTime(row.item.createdAt, TIMESTAMP_FORMAT);
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
214
|
+
$[46] = row.item.createdAt;
|
|
215
|
+
$[47] = t14;
|
|
213
216
|
} else {
|
|
214
|
-
t14 = $[
|
|
217
|
+
t14 = $[47];
|
|
215
218
|
}
|
|
216
219
|
let t15;
|
|
217
|
-
if ($[
|
|
220
|
+
if ($[48] !== row.item.createdAt) {
|
|
218
221
|
t15 = new Date(row.item.createdAt).toISOString();
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
222
|
+
$[48] = row.item.createdAt;
|
|
223
|
+
$[49] = t15;
|
|
221
224
|
} else {
|
|
222
|
-
t15 = $[
|
|
225
|
+
t15 = $[49];
|
|
223
226
|
}
|
|
224
227
|
const t16 = row.kind === "assistant" && "order-first";
|
|
225
228
|
let t17;
|
|
226
|
-
if ($[
|
|
229
|
+
if ($[50] !== t16) {
|
|
227
230
|
t17 = clsx("shrink-0 text-xs text-text-faint tabular-nums select-none", t16);
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
231
|
+
$[50] = t16;
|
|
232
|
+
$[51] = t17;
|
|
230
233
|
} else {
|
|
231
|
-
t17 = $[
|
|
234
|
+
t17 = $[51];
|
|
232
235
|
}
|
|
233
236
|
let t18;
|
|
234
|
-
if ($[
|
|
237
|
+
if ($[52] !== row.item.createdAt) {
|
|
235
238
|
t18 = formatClock(row.item.createdAt);
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
239
|
+
$[52] = row.item.createdAt;
|
|
240
|
+
$[53] = t18;
|
|
238
241
|
} else {
|
|
239
|
-
t18 = $[
|
|
242
|
+
t18 = $[53];
|
|
240
243
|
}
|
|
241
244
|
let t19;
|
|
242
|
-
if ($[
|
|
245
|
+
if ($[54] !== t15 || $[55] !== t17 || $[56] !== t18) {
|
|
243
246
|
t19 = /*#__PURE__*/_jsx("time", {
|
|
244
247
|
dateTime: t15,
|
|
245
248
|
className: t17,
|
|
246
249
|
children: t18
|
|
247
250
|
});
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
$[
|
|
251
|
+
$[54] = t15;
|
|
252
|
+
$[55] = t17;
|
|
253
|
+
$[56] = t18;
|
|
254
|
+
$[57] = t19;
|
|
252
255
|
} else {
|
|
253
|
-
t19 = $[
|
|
256
|
+
t19 = $[57];
|
|
254
257
|
}
|
|
255
258
|
let t20;
|
|
256
|
-
if ($[
|
|
259
|
+
if ($[58] !== t14 || $[59] !== t19) {
|
|
257
260
|
t20 = /*#__PURE__*/_jsx(Tooltip, {
|
|
258
261
|
label: t14,
|
|
259
262
|
children: t19
|
|
260
263
|
});
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
+
$[58] = t14;
|
|
265
|
+
$[59] = t19;
|
|
266
|
+
$[60] = t20;
|
|
264
267
|
} else {
|
|
265
|
-
t20 = $[
|
|
268
|
+
t20 = $[60];
|
|
266
269
|
}
|
|
267
270
|
let t21;
|
|
268
|
-
if ($[
|
|
271
|
+
if ($[61] !== t11 || $[62] !== t12 || $[63] !== t13 || $[64] !== t20 || $[65] !== t9) {
|
|
269
272
|
t21 = /*#__PURE__*/_jsxs("div", {
|
|
270
273
|
role: "toolbar",
|
|
271
274
|
"aria-label": t9,
|
|
272
275
|
className: t11,
|
|
273
276
|
children: [t12, t13, t20]
|
|
274
277
|
});
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
278
|
+
$[61] = t11;
|
|
279
|
+
$[62] = t12;
|
|
280
|
+
$[63] = t13;
|
|
281
|
+
$[64] = t20;
|
|
282
|
+
$[65] = t9;
|
|
283
|
+
$[66] = t21;
|
|
281
284
|
} else {
|
|
282
|
-
t21 = $[
|
|
285
|
+
t21 = $[66];
|
|
283
286
|
}
|
|
284
287
|
return t21;
|
|
285
288
|
}
|
|
289
|
+
function _temp3(host_0) {
|
|
290
|
+
return host_0;
|
|
291
|
+
}
|
|
286
292
|
function _temp2(chat_0) {
|
|
287
293
|
return chat_0?.info ?? null;
|
|
288
294
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AgentKind, type ModelSelection, type ProviderInfo } from '@adecore/agent-contracts';
|
|
2
2
|
import { type ReactNode, type RefObject } from 'react';
|
|
3
3
|
interface ModelPickerProps {
|
|
4
4
|
providers: ProviderInfo[];
|
package/dist/chat/ui/Pickers.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { inPickerOrder, separatesGroups } from '@adecore/agent-contracts';
|
|
2
3
|
import { Button, Icon, IconButton, Menu, Popover, ScrollArea, Tooltip } from '@adecore/ui';
|
|
3
4
|
import { ChevronDown, ChevronRight, Search, Star } from 'lucide-react';
|
|
4
5
|
import { useContext, useEffect, useRef, useState } from 'react';
|
|
@@ -7,11 +8,11 @@ import { AgentIcon } from '../../agents/AgentIcon.js';
|
|
|
7
8
|
import { agentChipOf, modelName } from '../../agents/model-name.js';
|
|
8
9
|
import { modelRequirementOf } from '../../agents/model-requirement.js';
|
|
9
10
|
import { ProviderLogo } from '../../agents/ProviderLogo.js';
|
|
10
|
-
import { useChatHost } from '../../host.js';
|
|
11
|
-
import { useHostMachineLabel } from '../../host-hooks.js';
|
|
11
|
+
import { useChatHost } from '../../host/host.js';
|
|
12
|
+
import { useHostMachineLabel } from '../../host/host-hooks.js';
|
|
12
13
|
import { ChatScopeContext } from '../../scope.js';
|
|
13
14
|
import { useReportedModels } from '../../state/chats.js';
|
|
14
|
-
import {
|
|
15
|
+
import { pickerEntriesOf } from '../logic/picker-entries.js';
|
|
15
16
|
import { favoriteModelsOf, toggleFavoriteModel, useChatPreferences } from '../preferences.js';
|
|
16
17
|
import { ModelMarks } from './ModelMarks.js';
|
|
17
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { type PromptSubject } from '../../prompts
|
|
2
|
+
import { type PromptSubject } from '../../host/prompts.js';
|
|
3
3
|
import type { HoldRelease } from '../prompt-hold.js';
|
|
4
4
|
export interface PromptHold {
|
|
5
5
|
held: boolean;
|
|
@@ -3,17 +3,18 @@ import { Button, Icon } from '@adecore/ui';
|
|
|
3
3
|
import { ArrowDown, Hand, MessageCircleQuestionMark } from 'lucide-react';
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { useChatHost } from '../../host.js';
|
|
7
|
-
import { useHostExtraPrompts } from '../../host-hooks.js';
|
|
8
|
-
import
|
|
9
|
-
import { orderPrompts } from '../../prompts/logic/prompts.js';
|
|
10
|
-
import { answerPrompt, isBlockingSubject, promptCreatedAt, promptIdOf } from '../../prompts/logic/subjects.js';
|
|
11
|
-
import { useFocusAfterAnswer } from '../../prompts/logic/useFocusAfterAnswer.js';
|
|
12
|
-
import { usePromptSession } from '../../prompts/logic/usePromptSession.js';
|
|
13
|
-
import { PromptView } from '../../prompts/ui/PromptView.js';
|
|
6
|
+
import { useChatHost } from '../../host/host.js';
|
|
7
|
+
import { useHostExtraPrompts } from '../../host/host-hooks.js';
|
|
8
|
+
import '../../host/prompts.js';
|
|
14
9
|
import { useChatScope } from '../../scope.js';
|
|
15
10
|
import { useProviders } from '../../state/providers.js';
|
|
16
11
|
import { useChatActions } from '../actions.js';
|
|
12
|
+
import { focusPromptHeading, focusPromptStart } from '../prompts/logic/focus.js';
|
|
13
|
+
import { orderPrompts } from '../prompts/logic/prompts.js';
|
|
14
|
+
import { answerPrompt, isBlockingSubject, promptCreatedAt, promptIdOf } from '../prompts/logic/subjects.js';
|
|
15
|
+
import { useFocusAfterAnswer } from '../prompts/logic/useFocusAfterAnswer.js';
|
|
16
|
+
import { usePromptSession } from '../prompts/logic/usePromptSession.js';
|
|
17
|
+
import { PromptView } from '../prompts/ui/PromptView.js';
|
|
17
18
|
/* The one being read stays in front; otherwise blocking before optional, oldest first, as everywhere else. */
|
|
18
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
20
|
function pickSubject(waiting, activeId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChatSkill } from '@adecore/agent-contracts';
|
|
2
|
-
import type { Referables } from '
|
|
2
|
+
import type { Referables } from '../../host/references.js';
|
|
3
3
|
import { type PromptDraft } from './composer/use-prompt-menus.js';
|
|
4
4
|
interface PromptEditorProps {
|
|
5
5
|
value: PromptDraft;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Surface } from '@adecore/ui';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useLayoutEffect, useRef } from 'react';
|
|
4
|
-
import { useChatHost } from '../../host.js';
|
|
4
|
+
import { useChatHost } from '../../host/host.js';
|
|
5
5
|
import { chipDecorations } from './composer/chips.js';
|
|
6
6
|
import { ComposerMenu } from './composer/ComposerMenu.js';
|
|
7
7
|
import { pickInMenu } from './composer/key-handler.js';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { CircleOff } from 'lucide-react';
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { useChatHost } from '../../host.js';
|
|
7
|
+
import { useChatHost } from '../../host/host.js';
|
|
8
8
|
import { REFERENCE_GONE_TONE, REFERENCE_TONE, TOKEN_ICON, TOKEN_ICON_BOX, TOKEN_IN_MESSAGE } from './chips.js';
|
|
9
9
|
import { referenceGlyph } from './reference-icons.js';
|
|
10
10
|
import { ReferenceLookupContext } from './reference-lookup.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentType } from 'react';
|
|
2
|
-
import type { ReferenceIconProps } from '../../host.js';
|
|
3
|
-
import type { ReferenceStep } from '
|
|
2
|
+
import type { ReferenceIconProps } from '../../host/host.js';
|
|
3
|
+
import type { ReferenceStep } from '../../host/references.js';
|
|
4
4
|
interface ReferenceTrailProps {
|
|
5
5
|
trail: readonly ReferenceStep[];
|
|
6
6
|
hostIcon: ComponentType<ReferenceIconProps> | null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { UsageProviderSchema } from '@adecore/agent-contracts';
|
|
2
|
+
import { inPickerOrder, separatesGroups, UsageProviderSchema } from '@adecore/agent-contracts';
|
|
3
3
|
import { Icon, Menu, Tooltip, useNow } from '@adecore/ui';
|
|
4
4
|
import { formatPercent, formatTokens } from '@adecore/ui/format';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -12,12 +12,12 @@ import { accountColor, canContinueOn } from '../../agents/accounts.js';
|
|
|
12
12
|
import { AgentIcon } from '../../agents/AgentIcon.js';
|
|
13
13
|
import { modelName } from '../../agents/model-name.js';
|
|
14
14
|
import { localizedOption } from '../../agents/option-words.js';
|
|
15
|
-
import { useChatHost } from '../../host.js';
|
|
15
|
+
import { useChatHost } from '../../host/host.js';
|
|
16
16
|
import { PROVIDER_COLORS } from '../../usage/format.js';
|
|
17
17
|
import { useUsageLimits } from '../../usage/limits.js';
|
|
18
18
|
import { CONTEXT_OPTION, contextFraction, contextSegments, orderOptions } from '../logic/context-usage.js';
|
|
19
19
|
import { EFFORT_OPTION } from '../logic/effort.js';
|
|
20
|
-
import { favoritesFirst,
|
|
20
|
+
import { favoritesFirst, searchModels, shortlistOf, wantsModelSearch } from '../logic/picker-entries.js';
|
|
21
21
|
import { favoriteModelsOf, toggleFavoriteModel, useChatPreferences } from '../preferences.js';
|
|
22
22
|
import { RUNTIME_MODES } from '../runtime-modes.js';
|
|
23
23
|
import { ModelMarks } from './ModelMarks.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { evenPace } from '@adecore/agent-contracts';
|
|
2
3
|
import { formatClock, formatPercent, formatWeekdayClock, isSameDay } from '@adecore/ui/format';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
5
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import {
|
|
6
|
+
import { paceText } from '../../usage/limit-groups.js';
|
|
6
7
|
/* Red where a window is nearly spent, amber where it is worth knowing, as the usage bars have it. */
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
function sessionTone(used) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { Tooltip } from '@adecore/ui';
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
-
import { useChatHost } from '../../host.js';
|
|
4
|
+
import { useChatHost } from '../../host/host.js';
|
|
5
5
|
import { EMBEDDED_CODE_LIMIT, SHELL_LANGUAGE, embeddedCode } from '../logic/embedded-code.js';
|
|
6
6
|
import { useCodeTheme } from './code-theme.js';
|
|
7
7
|
import { tokenStyle, useCodeHighlighter } from './highlighter.js';
|
|
@@ -29,7 +29,6 @@ function runsOf(highlighter, code, language, theme, offset) {
|
|
|
29
29
|
fontStyle: token.fontStyle
|
|
30
30
|
}));
|
|
31
31
|
}
|
|
32
|
-
/* `base` with `[start, end)` cut out of it and `inner` in its place. */
|
|
33
32
|
function overlay(base, start, end, inner) {
|
|
34
33
|
const kept = [];
|
|
35
34
|
for (const run of base) {
|
|
@@ -94,7 +93,6 @@ function highlight(command, extra, theme, code) {
|
|
|
94
93
|
}
|
|
95
94
|
return runs;
|
|
96
95
|
}
|
|
97
|
-
/* `command[from, to)` in its colors, or as it is while there are none. */
|
|
98
96
|
function draw(command, runs, from, to) {
|
|
99
97
|
if (runs === null) {
|
|
100
98
|
return [command.slice(from, to)];
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { taskIdOfRow } from '@adecore/agent-contracts';
|
|
2
3
|
import { Tooltip, useNow } from '@adecore/ui';
|
|
3
4
|
import { useTranslation } from 'react-i18next';
|
|
4
5
|
import { useModelName } from '../../agents/model-name.js';
|
|
5
|
-
import { useHostTask } from '../../host-hooks.js';
|
|
6
|
+
import { useHostTask } from '../../host/host-hooks.js';
|
|
6
7
|
import { useChatScope } from '../../scope.js';
|
|
7
8
|
import { useChatRow } from '../../state/chats.js';
|
|
8
|
-
import { entryTimeOf, statusWordOf
|
|
9
|
+
import { entryTimeOf, statusWordOf } from '../subagent-list.js';
|
|
9
10
|
import { useSubagentItem } from '../subagent-view.js';
|
|
10
11
|
import { StatusIcon } from './ChatActivity.js';
|
|
11
12
|
import { SubagentActions, SubagentBreadcrumb } from './SubagentControls.js';
|
|
@@ -31,7 +32,7 @@ export function SubagentInfo(t0) {
|
|
|
31
32
|
const provider = useChatRow(chatId, _temp);
|
|
32
33
|
let t1;
|
|
33
34
|
if ($[0] !== item) {
|
|
34
|
-
t1 = item === null ? null :
|
|
35
|
+
t1 = item === null ? null : taskIdOfRow(item);
|
|
35
36
|
$[0] = item;
|
|
36
37
|
$[1] = t1;
|
|
37
38
|
} else {
|
|
@@ -2,7 +2,7 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { IconButton } from '@adecore/ui';
|
|
3
3
|
import { Square } from 'lucide-react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { useChatHost } from '../../host.js';
|
|
5
|
+
import { useChatHost } from '../../host/host.js';
|
|
6
6
|
import { useChatScope } from '../../scope.js';
|
|
7
7
|
import { useChatRow } from '../../state/chats.js';
|
|
8
8
|
import { useChatActions } from '../actions.js';
|
|
@@ -3,8 +3,8 @@ import { EmptyState, ContextMenu, Icon, ScrollArea } from '@adecore/ui';
|
|
|
3
3
|
import { Bot, LoaderCircle } from 'lucide-react';
|
|
4
4
|
import { useCallback, useContext, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { useChatHost } from '../../host.js';
|
|
7
|
-
import { useHostHidesToolCalls } from '../../host-hooks.js';
|
|
6
|
+
import { useChatHost } from '../../host/host.js';
|
|
7
|
+
import { useHostHidesToolCalls } from '../../host/host-hooks.js';
|
|
8
8
|
import { useChatScope } from '../../scope.js';
|
|
9
9
|
import { useChatRow } from '../../state/chats.js';
|
|
10
10
|
import { deriveTimelineRows } from '../logic/timeline.js';
|
package/dist/chat/ui/Timeline.js
CHANGED
|
@@ -6,10 +6,12 @@ import { LoaderCircle } from 'lucide-react';
|
|
|
6
6
|
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { useModelName } from '../../agents/model-name.js';
|
|
9
|
-
import { useChatHost } from '../../host.js';
|
|
10
|
-
import { useHostContextSources, useHostHidesToolCalls, useHostThreadCards, useHostTimelineFind, useHostWelcome } from '../../host-hooks.js';
|
|
9
|
+
import { useChatHost } from '../../host/host.js';
|
|
10
|
+
import { useHostContextSources, useHostHidesToolCalls, useHostThreadCards, useHostTimelineFind, useHostWelcome } from '../../host/host-hooks.js';
|
|
11
|
+
import '../../host/timeline-row.js';
|
|
11
12
|
import { useChatScope } from '../../scope.js';
|
|
12
13
|
import { useChatRow, useChats } from '../../state/chats.js';
|
|
14
|
+
import { providersOf } from '../../state/providers.js';
|
|
13
15
|
import { useForkedTurns } from '../forks.js';
|
|
14
16
|
import { bookmarkRows } from '../logic/bookmarks.js';
|
|
15
17
|
import { forkRefusal } from '../logic/fork.js';
|
|
@@ -996,10 +998,10 @@ export function Timeline({
|
|
|
996
998
|
return false;
|
|
997
999
|
}
|
|
998
1000
|
const row_14 = useChats.getState().byKey[keyOf(chatId)];
|
|
999
|
-
return forkRefusal(row_14?.info ?? null, row_14?.structure[turnId_2]) === null;
|
|
1001
|
+
return forkRefusal(row_14?.info ?? null, row_14?.structure[turnId_2], providersOf(scopeId)) === null;
|
|
1000
1002
|
},
|
|
1001
1003
|
fork: turnId_3 => fork?.(chatId, turnId_3)
|
|
1002
|
-
}), [keyOf, chatId, fork]);
|
|
1004
|
+
}), [keyOf, scopeId, chatId, fork]);
|
|
1003
1005
|
const stepRef = useRef(() => false);
|
|
1004
1006
|
stepRef.current = direction => {
|
|
1005
1007
|
if (!onMainAgent) {
|