@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
|
@@ -2,9 +2,10 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { ContextMenu, copyText, DisabledReason, EDIT_SHORTCUTS, Icon, Kbd, selectAllWithin } from '@adecore/ui';
|
|
3
3
|
import { BookmarkPlus, BookmarkX, Braces, Copy, Eye, FileText, GitFork, MessageSquare, MoveHorizontal, Pencil, Scan } 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
|
+
import { useProviders } from '../../state/providers.js';
|
|
8
9
|
import { placeBookmark, removeBookmark, useBookmarkNaming } from '../bookmarks.js';
|
|
9
10
|
import { forkRefusal, turnIdOfRow } from '../logic/fork.js';
|
|
10
11
|
import { markdownOf, messageTextOf } from '../logic/timeline-copy.js';
|
|
@@ -16,7 +17,7 @@ import { useReferenceLookup } from './thread-references.js';
|
|
|
16
17
|
/* The menu behind a right-click in a thread, mostly for copying: a whole message, a code block or an answer's markdown. */
|
|
17
18
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
19
|
export function TimelineMenuPopup(t0) {
|
|
19
|
-
const $ = _c(
|
|
20
|
+
const $ = _c(73);
|
|
20
21
|
const {
|
|
21
22
|
target,
|
|
22
23
|
thread,
|
|
@@ -48,22 +49,24 @@ export function TimelineMenuPopup(t0) {
|
|
|
48
49
|
t4 = $[4];
|
|
49
50
|
}
|
|
50
51
|
const turnId = t4;
|
|
52
|
+
const providers = useProviders(_temp);
|
|
51
53
|
let t5;
|
|
52
|
-
if ($[5] !== turnId) {
|
|
53
|
-
t5 = row_0 => turnId === null ? null : forkRefusal(row_0?.info ?? null, row_0?.structure[turnId]);
|
|
54
|
-
$[5] =
|
|
55
|
-
$[6] =
|
|
54
|
+
if ($[5] !== providers || $[6] !== turnId) {
|
|
55
|
+
t5 = row_0 => turnId === null ? null : forkRefusal(row_0?.info ?? null, row_0?.structure[turnId], providers);
|
|
56
|
+
$[5] = providers;
|
|
57
|
+
$[6] = turnId;
|
|
58
|
+
$[7] = t5;
|
|
56
59
|
} else {
|
|
57
|
-
t5 = $[
|
|
60
|
+
t5 = $[7];
|
|
58
61
|
}
|
|
59
62
|
const forkBlocked = useChatRow(chatId ?? "", t5);
|
|
60
63
|
let t6;
|
|
61
|
-
if ($[
|
|
64
|
+
if ($[8] !== target.row) {
|
|
62
65
|
t6 = target.row === null ? null : markdownOf(target.row);
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
66
|
+
$[8] = target.row;
|
|
67
|
+
$[9] = t6;
|
|
65
68
|
} else {
|
|
66
|
-
t6 = $[
|
|
69
|
+
t6 = $[9];
|
|
67
70
|
}
|
|
68
71
|
const markdown = t6;
|
|
69
72
|
const markable = chatId !== null && (target.row?.kind === "user" || target.row?.kind === "assistant") ? target.row.id : null;
|
|
@@ -76,7 +79,7 @@ export function TimelineMenuPopup(t0) {
|
|
|
76
79
|
} = useChatHost();
|
|
77
80
|
const openFileLink = useOpenFileLink();
|
|
78
81
|
let t7;
|
|
79
|
-
if ($[
|
|
82
|
+
if ($[10] !== cwd || $[11] !== openFileLink || $[12] !== scopeId || $[13] !== target.file || $[14] !== target.line || $[15] !== target.path) {
|
|
80
83
|
t7 = () => {
|
|
81
84
|
if (target.file != null) {
|
|
82
85
|
openFileLink(target.file.cwd, target.file.ref, target.file.scopeId);
|
|
@@ -92,69 +95,69 @@ export function TimelineMenuPopup(t0) {
|
|
|
92
95
|
}
|
|
93
96
|
}
|
|
94
97
|
};
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
98
|
+
$[10] = cwd;
|
|
99
|
+
$[11] = openFileLink;
|
|
100
|
+
$[12] = scopeId;
|
|
101
|
+
$[13] = target.file;
|
|
102
|
+
$[14] = target.line;
|
|
103
|
+
$[15] = target.path;
|
|
104
|
+
$[16] = t7;
|
|
102
105
|
} else {
|
|
103
|
-
t7 = $[
|
|
106
|
+
t7 = $[16];
|
|
104
107
|
}
|
|
105
108
|
const openInPreview = t7;
|
|
106
109
|
const t8 = target.selection === "";
|
|
107
110
|
let t9;
|
|
108
|
-
if ($[
|
|
111
|
+
if ($[17] !== target.selection) {
|
|
109
112
|
t9 = () => copyText(target.selection);
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
113
|
+
$[17] = target.selection;
|
|
114
|
+
$[18] = t9;
|
|
112
115
|
} else {
|
|
113
|
-
t9 = $[
|
|
116
|
+
t9 = $[18];
|
|
114
117
|
}
|
|
115
118
|
let t10;
|
|
116
|
-
if ($[
|
|
119
|
+
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
117
120
|
t10 = /*#__PURE__*/_jsx(Icon, {
|
|
118
121
|
icon: Copy,
|
|
119
122
|
size: 14
|
|
120
123
|
});
|
|
121
|
-
$[
|
|
124
|
+
$[19] = t10;
|
|
122
125
|
} else {
|
|
123
|
-
t10 = $[
|
|
126
|
+
t10 = $[19];
|
|
124
127
|
}
|
|
125
128
|
let t11;
|
|
126
|
-
if ($[
|
|
129
|
+
if ($[20] !== t) {
|
|
127
130
|
t11 = t("common.action.copy");
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
131
|
+
$[20] = t;
|
|
132
|
+
$[21] = t11;
|
|
130
133
|
} else {
|
|
131
|
-
t11 = $[
|
|
134
|
+
t11 = $[21];
|
|
132
135
|
}
|
|
133
136
|
let t12;
|
|
134
|
-
if ($[
|
|
137
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
135
138
|
t12 = /*#__PURE__*/_jsx(Kbd, {
|
|
136
139
|
shortcut: EDIT_SHORTCUTS.copy
|
|
137
140
|
});
|
|
138
|
-
$[
|
|
141
|
+
$[22] = t12;
|
|
139
142
|
} else {
|
|
140
|
-
t12 = $[
|
|
143
|
+
t12 = $[22];
|
|
141
144
|
}
|
|
142
145
|
let t13;
|
|
143
|
-
if ($[
|
|
146
|
+
if ($[23] !== t11 || $[24] !== t8 || $[25] !== t9) {
|
|
144
147
|
t13 = /*#__PURE__*/_jsxs(ContextMenu.Item, {
|
|
145
148
|
disabled: t8,
|
|
146
149
|
onClick: t9,
|
|
147
150
|
children: [t10, " ", t11, " ", t12]
|
|
148
151
|
});
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
152
|
+
$[23] = t11;
|
|
153
|
+
$[24] = t8;
|
|
154
|
+
$[25] = t9;
|
|
155
|
+
$[26] = t13;
|
|
153
156
|
} else {
|
|
154
|
-
t13 = $[
|
|
157
|
+
t13 = $[26];
|
|
155
158
|
}
|
|
156
159
|
let t14;
|
|
157
|
-
if ($[
|
|
160
|
+
if ($[27] !== lookup || $[28] !== message || $[29] !== row || $[30] !== t) {
|
|
158
161
|
t14 = row !== null && message !== null && /*#__PURE__*/_jsxs(ContextMenu.Item, {
|
|
159
162
|
onClick: () => copyWithChips(rowClipboardChips(row, message, lookup)),
|
|
160
163
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
@@ -162,16 +165,16 @@ export function TimelineMenuPopup(t0) {
|
|
|
162
165
|
size: 14
|
|
163
166
|
}), " ", t("timeline.menu.copyMessage")]
|
|
164
167
|
});
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
168
|
+
$[27] = lookup;
|
|
169
|
+
$[28] = message;
|
|
170
|
+
$[29] = row;
|
|
171
|
+
$[30] = t;
|
|
172
|
+
$[31] = t14;
|
|
170
173
|
} else {
|
|
171
|
-
t14 = $[
|
|
174
|
+
t14 = $[31];
|
|
172
175
|
}
|
|
173
176
|
let t15;
|
|
174
|
-
if ($[
|
|
177
|
+
if ($[32] !== t || $[33] !== target.code) {
|
|
175
178
|
t15 = target.code !== null && /*#__PURE__*/_jsxs(ContextMenu.Item, {
|
|
176
179
|
onClick: () => copyText(target.code ?? ""),
|
|
177
180
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
@@ -179,14 +182,14 @@ export function TimelineMenuPopup(t0) {
|
|
|
179
182
|
size: 14
|
|
180
183
|
}), " ", t("timeline.menu.copyCode")]
|
|
181
184
|
});
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
+
$[32] = t;
|
|
186
|
+
$[33] = target.code;
|
|
187
|
+
$[34] = t15;
|
|
185
188
|
} else {
|
|
186
|
-
t15 = $[
|
|
189
|
+
t15 = $[34];
|
|
187
190
|
}
|
|
188
191
|
let t16;
|
|
189
|
-
if ($[
|
|
192
|
+
if ($[35] !== markdown || $[36] !== t) {
|
|
190
193
|
t16 = markdown !== null && /*#__PURE__*/_jsxs(ContextMenu.Item, {
|
|
191
194
|
onClick: () => copyText(markdown),
|
|
192
195
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
@@ -194,14 +197,14 @@ export function TimelineMenuPopup(t0) {
|
|
|
194
197
|
size: 14
|
|
195
198
|
}), " ", t("timeline.menu.copyMarkdown")]
|
|
196
199
|
});
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
+
$[35] = markdown;
|
|
201
|
+
$[36] = t;
|
|
202
|
+
$[37] = t16;
|
|
200
203
|
} else {
|
|
201
|
-
t16 = $[
|
|
204
|
+
t16 = $[37];
|
|
202
205
|
}
|
|
203
206
|
let t17;
|
|
204
|
-
if ($[
|
|
207
|
+
if ($[38] !== chatId || $[39] !== fork || $[40] !== forkBlocked || $[41] !== t || $[42] !== turnId) {
|
|
205
208
|
t17 = chatId !== null && turnId !== null && fork !== null && /*#__PURE__*/_jsx(DisabledReason, {
|
|
206
209
|
reason: forkBlocked,
|
|
207
210
|
children: /*#__PURE__*/_jsxs(ContextMenu.Item, {
|
|
@@ -213,74 +216,74 @@ export function TimelineMenuPopup(t0) {
|
|
|
213
216
|
}), " ", t("timeline.menu.forkFromHere")]
|
|
214
217
|
})
|
|
215
218
|
});
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
219
|
+
$[38] = chatId;
|
|
220
|
+
$[39] = fork;
|
|
221
|
+
$[40] = forkBlocked;
|
|
222
|
+
$[41] = t;
|
|
223
|
+
$[42] = turnId;
|
|
224
|
+
$[43] = t17;
|
|
222
225
|
} else {
|
|
223
|
-
t17 = $[
|
|
226
|
+
t17 = $[43];
|
|
224
227
|
}
|
|
225
228
|
let t18;
|
|
226
|
-
if ($[
|
|
229
|
+
if ($[44] !== chatId || $[45] !== markable) {
|
|
227
230
|
t18 = chatId !== null && markable !== null && /*#__PURE__*/_jsx(BookmarkMenuItems, {
|
|
228
231
|
chatId: chatId,
|
|
229
232
|
itemId: markable
|
|
230
233
|
});
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
$[
|
|
234
|
+
$[44] = chatId;
|
|
235
|
+
$[45] = markable;
|
|
236
|
+
$[46] = t18;
|
|
234
237
|
} else {
|
|
235
|
-
t18 = $[
|
|
238
|
+
t18 = $[46];
|
|
236
239
|
}
|
|
237
240
|
let t19;
|
|
238
|
-
if ($[
|
|
241
|
+
if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
|
|
239
242
|
t19 = /*#__PURE__*/_jsx(ContextMenu.Separator, {});
|
|
240
|
-
$[
|
|
243
|
+
$[47] = t19;
|
|
241
244
|
} else {
|
|
242
|
-
t19 = $[
|
|
245
|
+
t19 = $[47];
|
|
243
246
|
}
|
|
244
247
|
let t20;
|
|
245
|
-
if ($[
|
|
248
|
+
if ($[48] !== thread.current) {
|
|
246
249
|
t20 = () => selectAllWithin(thread.current);
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
250
|
+
$[48] = thread.current;
|
|
251
|
+
$[49] = t20;
|
|
249
252
|
} else {
|
|
250
|
-
t20 = $[
|
|
253
|
+
t20 = $[49];
|
|
251
254
|
}
|
|
252
255
|
let t21;
|
|
253
|
-
if ($[
|
|
256
|
+
if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
|
|
254
257
|
t21 = /*#__PURE__*/_jsx(Icon, {
|
|
255
258
|
icon: Scan,
|
|
256
259
|
size: 14
|
|
257
260
|
});
|
|
258
|
-
$[
|
|
261
|
+
$[50] = t21;
|
|
259
262
|
} else {
|
|
260
|
-
t21 = $[
|
|
263
|
+
t21 = $[50];
|
|
261
264
|
}
|
|
262
265
|
let t22;
|
|
263
|
-
if ($[
|
|
266
|
+
if ($[51] !== t) {
|
|
264
267
|
t22 = t("common.action.selectAll");
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
268
|
+
$[51] = t;
|
|
269
|
+
$[52] = t22;
|
|
267
270
|
} else {
|
|
268
|
-
t22 = $[
|
|
271
|
+
t22 = $[52];
|
|
269
272
|
}
|
|
270
273
|
let t23;
|
|
271
|
-
if ($[
|
|
274
|
+
if ($[53] !== t20 || $[54] !== t22) {
|
|
272
275
|
t23 = /*#__PURE__*/_jsxs(ContextMenu.Item, {
|
|
273
276
|
onClick: t20,
|
|
274
277
|
children: [t21, " ", t22]
|
|
275
278
|
});
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
+
$[53] = t20;
|
|
280
|
+
$[54] = t22;
|
|
281
|
+
$[55] = t23;
|
|
279
282
|
} else {
|
|
280
|
-
t23 = $[
|
|
283
|
+
t23 = $[55];
|
|
281
284
|
}
|
|
282
285
|
let t24;
|
|
283
|
-
if ($[
|
|
286
|
+
if ($[56] !== fileLinks || $[57] !== openInPreview || $[58] !== t || $[59] !== target.path) {
|
|
284
287
|
t24 = target.path !== null && fileLinks !== null && /*#__PURE__*/_jsxs(_Fragment, {
|
|
285
288
|
children: [/*#__PURE__*/_jsx(ContextMenu.Separator, {}), /*#__PURE__*/_jsxs(ContextMenu.Item, {
|
|
286
289
|
onClick: openInPreview,
|
|
@@ -290,41 +293,41 @@ export function TimelineMenuPopup(t0) {
|
|
|
290
293
|
}), " ", t("timeline.menu.openInPreview")]
|
|
291
294
|
})]
|
|
292
295
|
});
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
296
|
+
$[56] = fileLinks;
|
|
297
|
+
$[57] = openInPreview;
|
|
298
|
+
$[58] = t;
|
|
299
|
+
$[59] = target.path;
|
|
300
|
+
$[60] = t24;
|
|
298
301
|
} else {
|
|
299
|
-
t24 = $[
|
|
302
|
+
t24 = $[60];
|
|
300
303
|
}
|
|
301
304
|
let t25;
|
|
302
|
-
if ($[
|
|
305
|
+
if ($[61] !== column) {
|
|
303
306
|
t25 = column && /*#__PURE__*/_jsxs(_Fragment, {
|
|
304
307
|
children: [/*#__PURE__*/_jsx(ContextMenu.Separator, {}), /*#__PURE__*/_jsx(ReadingWidthSubmenu, {})]
|
|
305
308
|
});
|
|
306
|
-
$[
|
|
307
|
-
$[
|
|
309
|
+
$[61] = column;
|
|
310
|
+
$[62] = t25;
|
|
308
311
|
} else {
|
|
309
|
-
t25 = $[
|
|
312
|
+
t25 = $[62];
|
|
310
313
|
}
|
|
311
314
|
let t26;
|
|
312
|
-
if ($[
|
|
315
|
+
if ($[63] !== t13 || $[64] !== t14 || $[65] !== t15 || $[66] !== t16 || $[67] !== t17 || $[68] !== t18 || $[69] !== t23 || $[70] !== t24 || $[71] !== t25) {
|
|
313
316
|
t26 = /*#__PURE__*/_jsxs(ContextMenu.Popup, {
|
|
314
317
|
children: [t13, t14, t15, t16, t17, t18, t19, t23, t24, t25]
|
|
315
318
|
});
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
} else {
|
|
327
|
-
t26 = $[
|
|
319
|
+
$[63] = t13;
|
|
320
|
+
$[64] = t14;
|
|
321
|
+
$[65] = t15;
|
|
322
|
+
$[66] = t16;
|
|
323
|
+
$[67] = t17;
|
|
324
|
+
$[68] = t18;
|
|
325
|
+
$[69] = t23;
|
|
326
|
+
$[70] = t24;
|
|
327
|
+
$[71] = t25;
|
|
328
|
+
$[72] = t26;
|
|
329
|
+
} else {
|
|
330
|
+
t26 = $[72];
|
|
328
331
|
}
|
|
329
332
|
return t26;
|
|
330
333
|
}
|
|
@@ -332,6 +335,9 @@ export function TimelineMenuPopup(t0) {
|
|
|
332
335
|
* Place a bookmark on a message, or rename and remove the one it has, from the thread and from the strip.
|
|
333
336
|
* `onName` runs when a row opens the name field, which sits over the message and so has to be on screen.
|
|
334
337
|
*/
|
|
338
|
+
function _temp(host) {
|
|
339
|
+
return host;
|
|
340
|
+
}
|
|
335
341
|
export function BookmarkMenuItems(t0) {
|
|
336
342
|
const $ = _c(39);
|
|
337
343
|
const {
|
|
@@ -505,7 +511,7 @@ function ReadingWidthSubmenu() {
|
|
|
505
511
|
const {
|
|
506
512
|
t
|
|
507
513
|
} = useTranslation("agent-chat");
|
|
508
|
-
const readingWidth = useChatPreferences(
|
|
514
|
+
const readingWidth = useChatPreferences(_temp2);
|
|
509
515
|
let t0;
|
|
510
516
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
511
517
|
t0 = /*#__PURE__*/_jsx(Icon, {
|
|
@@ -536,7 +542,7 @@ function ReadingWidthSubmenu() {
|
|
|
536
542
|
}
|
|
537
543
|
let t3;
|
|
538
544
|
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
539
|
-
t3 = CHAT_READING_WIDTHS.map(
|
|
545
|
+
t3 = CHAT_READING_WIDTHS.map(_temp4);
|
|
540
546
|
$[5] = t3;
|
|
541
547
|
} else {
|
|
542
548
|
t3 = $[5];
|
|
@@ -547,7 +553,7 @@ function ReadingWidthSubmenu() {
|
|
|
547
553
|
className: "min-w-40",
|
|
548
554
|
children: /*#__PURE__*/_jsx(ContextMenu.RadioGroup, {
|
|
549
555
|
value: readingWidth,
|
|
550
|
-
onValueChange:
|
|
556
|
+
onValueChange: _temp3,
|
|
551
557
|
children: t3
|
|
552
558
|
})
|
|
553
559
|
});
|
|
@@ -569,15 +575,15 @@ function ReadingWidthSubmenu() {
|
|
|
569
575
|
}
|
|
570
576
|
return t5;
|
|
571
577
|
}
|
|
572
|
-
function
|
|
578
|
+
function _temp4(width_0) {
|
|
573
579
|
return /*#__PURE__*/_jsx(ContextMenu.RadioItem, {
|
|
574
580
|
value: width_0,
|
|
575
581
|
children: readingWidthLabel(width_0)
|
|
576
582
|
}, width_0);
|
|
577
583
|
}
|
|
578
|
-
function
|
|
584
|
+
function _temp3(width) {
|
|
579
585
|
return rememberReadingWidth(width);
|
|
580
586
|
}
|
|
581
|
-
function
|
|
587
|
+
function _temp2(preferences) {
|
|
582
588
|
return preferences.readingWidth;
|
|
583
589
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { LazyBoundary } from '@adecore/ui';
|
|
2
|
+
import { LazyBoundary, lazyNamed } from '@adecore/ui';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { useChatHost } from '../../host.js';
|
|
5
|
-
import { lazyNamed } from '../../lazy.js';
|
|
4
|
+
import { useChatHost } from '../../host/host.js';
|
|
6
5
|
import { diffSourceBudget, legacyDiffBudget, patchSourceBudget } from './diff/diff-source-budget.js';
|
|
7
6
|
import { DiffFallbackBoundary } from './diff/DiffFallbackBoundary.js';
|
|
8
7
|
import { DiffOmitted } from './diff/DiffOmitted.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ChatVisual } from '@adecore/agent-contracts/visual';
|
|
2
|
-
|
|
2
|
+
interface VisualFrameProps {
|
|
3
3
|
chatId: string;
|
|
4
4
|
visual: ChatVisual;
|
|
5
5
|
fill?: boolean;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface VisualPageFrameProps {
|
|
9
9
|
page: () => Promise<string>;
|
|
10
10
|
title: string;
|
|
11
11
|
maxHeight?: number;
|
|
@@ -14,3 +14,4 @@ export interface VisualPageFrameProps {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function VisualFrame({ chatId, visual, fill, className }: VisualFrameProps): import("react").JSX.Element;
|
|
16
16
|
export declare function VisualPageFrame({ maxHeight, ...props }: VisualPageFrameProps): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import { Spinner, useMeasuredWidth } from '@adecore/ui';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState } 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 { useChatScope } from '../../scope.js';
|
|
9
9
|
import { imageDocumentForDisplay } from '../image-display.js';
|
|
10
10
|
import { DEFAULT_HEIGHT_PX, initialVisualContentHeight, rememberVisualHeight } from '../logic/visual-height.js';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { ChatAssistantItem, ChatUserItem } from '@adecore/agent-contracts';
|
|
2
|
-
import type { TimelineRow } from '
|
|
2
|
+
import type { TimelineRow } from '../../host/timeline-row.js';
|
|
3
3
|
import { type ClipboardChips } from '../mentions.js';
|
|
4
4
|
import type { ReferenceLookup } from './reference-lookup.js';
|
|
5
5
|
export declare function messageClipboardChips(item: ChatUserItem | ChatAssistantItem, text: string, lookup: Pick<ReferenceLookup, 'items' | 'referenced'>): ClipboardChips;
|
|
6
6
|
export declare function rowClipboardChips(row: TimelineRow, text: string, lookup: Pick<ReferenceLookup, 'items' | 'referenced'>): ClipboardChips;
|
|
7
|
-
export declare function selectionChips(selection: Selection): ClipboardChips;
|
|
8
7
|
export declare function copySelectionWithChips(event: ClipboardEvent): void;
|
|
9
8
|
export declare function copyWithChips(chips: ClipboardChips): void;
|
|
@@ -57,7 +57,7 @@ function segmentOf(chip) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
/* The chips a selection holds whole, beside the text it copies; a chip cut in half is only text. */
|
|
60
|
-
|
|
60
|
+
function selectionChips(selection) {
|
|
61
61
|
const segments = [];
|
|
62
62
|
for (let i = 0; i < selection.rangeCount; i++) {
|
|
63
63
|
const container = selection.getRangeAt(i).commonAncestorContainer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ThemeRegistration } from 'shiki';
|
|
2
|
-
import { type ChatHost } from '../../host.js';
|
|
2
|
+
import { type ChatHost } from '../../host/host.js';
|
|
3
3
|
export declare function useCodeTheme(): string;
|
|
4
4
|
export declare function shikiThemeOf(id: string, custom: ChatHost['code']['custom']): string | ThemeRegistration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../../host.js';
|
|
2
|
-
import { useHostCodeMode, useHostCodeThemes } from '../../host-hooks.js';
|
|
1
|
+
import '../../host/host.js';
|
|
2
|
+
import { useHostCodeMode, useHostCodeThemes } from '../../host/host-hooks.js';
|
|
3
3
|
/* The Shiki theme code is drawn in under the app's current light or dark. */
|
|
4
4
|
export function useCodeTheme() {
|
|
5
5
|
const mode = useHostCodeMode();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type ChatInfo } from '@adecore/agent-contracts';
|
|
2
2
|
import { type Shortcut } from '@adecore/ui';
|
|
3
3
|
import { type Ref } from 'react';
|
|
4
|
-
import { type ComposerSendAction, type ComposerSendDraft } from '../../../host.js';
|
|
5
4
|
import type { StashedPrompt } from '../../stash.js';
|
|
6
5
|
import { type PlusMenuSigils } from './ComposerPlusMenu.js';
|
|
7
6
|
import type { ChatControls } from './use-chat-controls.js';
|
|
@@ -12,8 +11,6 @@ interface SendProps {
|
|
|
12
11
|
kbd: Shortcut;
|
|
13
12
|
onSend(alternate: boolean): void;
|
|
14
13
|
onContinue: (() => void) | null;
|
|
15
|
-
actions: readonly ComposerSendAction[];
|
|
16
|
-
draft: ComposerSendDraft;
|
|
17
14
|
}
|
|
18
15
|
interface ComposerControlsProps {
|
|
19
16
|
chatId: string;
|