@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
package/dist/chat/ui/Composer.js
CHANGED
|
@@ -5,13 +5,13 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { ChevronDown } from 'lucide-react';
|
|
6
6
|
import { useEffect, useRef, useState, useSyncExternalStore } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import { useChatHost } from '../../host.js';
|
|
9
|
-
import {
|
|
10
|
-
import { canSteer } from '../../providers/provider-abilities.js';
|
|
8
|
+
import { useChatHost } from '../../host/host.js';
|
|
9
|
+
import { useHostComposerStatus, useHostExtraPrompts, useHostSendDelivery } from '../../host/host-hooks.js';
|
|
11
10
|
import { useChatScope } from '../../scope.js';
|
|
12
11
|
import { useProviders } from '../../state/providers.js';
|
|
13
12
|
import { isEmptyDraft } from '../drafts.js';
|
|
14
13
|
import { PROMPT_MAX_CHARS, promptGuard } from '../guards.js';
|
|
14
|
+
import { canSteer } from '../logic/steer.js';
|
|
15
15
|
import { useChatPreferences } from '../preferences.js';
|
|
16
16
|
import { withQuote } from '../quote.js';
|
|
17
17
|
import { dismissResumeCompaction } from '../resume-compaction-dismissals.js';
|
|
@@ -56,7 +56,7 @@ function sendLabelKey(busy, steerable, delivery) {
|
|
|
56
56
|
return delivery === 'steer' ? 'composer.steerButton' : 'composer.queueWithSteerButton';
|
|
57
57
|
}
|
|
58
58
|
export function Composer(t0) {
|
|
59
|
-
const $ = _c(
|
|
59
|
+
const $ = _c(248);
|
|
60
60
|
const {
|
|
61
61
|
chatId,
|
|
62
62
|
info,
|
|
@@ -208,7 +208,6 @@ export function Composer(t0) {
|
|
|
208
208
|
const continuable = useContinuableTurn(chatId, info);
|
|
209
209
|
const [sentFor, setSentFor] = useState(null);
|
|
210
210
|
const extraPrompts = useHostExtraPrompts(scope.id, chatId);
|
|
211
|
-
const sendActions = useHostComposerSendActions(scope.id, chatId);
|
|
212
211
|
const statusItems = useHostComposerStatus(scope.id, chatId);
|
|
213
212
|
let t12;
|
|
214
213
|
if ($[35] !== continuable || $[36] !== onSend) {
|
|
@@ -727,94 +726,60 @@ export function Composer(t0) {
|
|
|
727
726
|
t58 = $[162];
|
|
728
727
|
}
|
|
729
728
|
const t59 = continuable !== null && continuable !== sentFor && empty && writable && pending.length === 0 && extraPrompts.length === 0 ? continueTurn : null;
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
t61 = withQuote(draft.quote, draft.text.trim());
|
|
734
|
-
$[163] = draft.quote;
|
|
735
|
-
$[164] = draft.text;
|
|
736
|
-
$[165] = t61;
|
|
737
|
-
} else {
|
|
738
|
-
t61 = $[165];
|
|
739
|
-
}
|
|
740
|
-
let t62;
|
|
741
|
-
if ($[166] !== chatId || $[167] !== info.provider || $[168] !== info.runtimeMode || $[169] !== info.selection || $[170] !== scope.id || $[171] !== t61) {
|
|
742
|
-
t62 = {
|
|
743
|
-
scopeId: t60,
|
|
744
|
-
chatId,
|
|
745
|
-
text: t61,
|
|
746
|
-
provider: info.provider,
|
|
747
|
-
selection: info.selection,
|
|
748
|
-
runtimeMode: info.runtimeMode
|
|
749
|
-
};
|
|
750
|
-
$[166] = chatId;
|
|
751
|
-
$[167] = info.provider;
|
|
752
|
-
$[168] = info.runtimeMode;
|
|
753
|
-
$[169] = info.selection;
|
|
754
|
-
$[170] = scope.id;
|
|
755
|
-
$[171] = t61;
|
|
756
|
-
$[172] = t62;
|
|
757
|
-
} else {
|
|
758
|
-
t62 = $[172];
|
|
759
|
-
}
|
|
760
|
-
let t63;
|
|
761
|
-
if ($[173] !== sendActions || $[174] !== t54 || $[175] !== t55 || $[176] !== t56 || $[177] !== t57 || $[178] !== t58 || $[179] !== t59 || $[180] !== t62) {
|
|
762
|
-
t63 = {
|
|
729
|
+
let t60;
|
|
730
|
+
if ($[163] !== t54 || $[164] !== t55 || $[165] !== t56 || $[166] !== t57 || $[167] !== t58 || $[168] !== t59) {
|
|
731
|
+
t60 = {
|
|
763
732
|
visible: t54,
|
|
764
733
|
disabled: t55,
|
|
765
734
|
label: t56,
|
|
766
735
|
kbd: t57,
|
|
767
736
|
onSend: t58,
|
|
768
|
-
onContinue: t59
|
|
769
|
-
actions: sendActions,
|
|
770
|
-
draft: t62
|
|
737
|
+
onContinue: t59
|
|
771
738
|
};
|
|
772
|
-
$[
|
|
773
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
777
|
-
$[
|
|
778
|
-
$[
|
|
779
|
-
|
|
780
|
-
$[
|
|
781
|
-
} else {
|
|
782
|
-
t63 = $[181];
|
|
739
|
+
$[163] = t54;
|
|
740
|
+
$[164] = t55;
|
|
741
|
+
$[165] = t56;
|
|
742
|
+
$[166] = t57;
|
|
743
|
+
$[167] = t58;
|
|
744
|
+
$[168] = t59;
|
|
745
|
+
$[169] = t60;
|
|
746
|
+
} else {
|
|
747
|
+
t60 = $[169];
|
|
783
748
|
}
|
|
784
|
-
let
|
|
785
|
-
if ($[
|
|
786
|
-
|
|
749
|
+
let t61;
|
|
750
|
+
if ($[170] !== files) {
|
|
751
|
+
t61 = picked => {
|
|
787
752
|
files.addFiles(picked);
|
|
788
753
|
inputRef.current?.focus();
|
|
789
754
|
};
|
|
790
|
-
$[
|
|
791
|
-
$[
|
|
755
|
+
$[170] = files;
|
|
756
|
+
$[171] = t61;
|
|
792
757
|
} else {
|
|
793
|
-
|
|
758
|
+
t61 = $[171];
|
|
794
759
|
}
|
|
795
|
-
let
|
|
796
|
-
let
|
|
797
|
-
if ($[
|
|
798
|
-
|
|
760
|
+
let t62;
|
|
761
|
+
let t63;
|
|
762
|
+
if ($[172] !== writable) {
|
|
763
|
+
t62 = sigil => {
|
|
799
764
|
if (writable) {
|
|
800
765
|
inputRef.current?.insertSigil(sigil);
|
|
801
766
|
}
|
|
802
767
|
};
|
|
803
|
-
|
|
768
|
+
t63 = added => {
|
|
804
769
|
if (writable) {
|
|
805
770
|
inputRef.current?.insert(added);
|
|
806
771
|
}
|
|
807
772
|
};
|
|
808
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
773
|
+
$[172] = writable;
|
|
774
|
+
$[173] = t62;
|
|
775
|
+
$[174] = t63;
|
|
811
776
|
} else {
|
|
812
|
-
|
|
813
|
-
|
|
777
|
+
t62 = $[173];
|
|
778
|
+
t63 = $[174];
|
|
814
779
|
}
|
|
815
|
-
let
|
|
816
|
-
if ($[
|
|
817
|
-
|
|
780
|
+
let t64;
|
|
781
|
+
if ($[175] !== T1 || $[176] !== chatId || $[177] !== controls || $[178] !== empty || $[179] !== info || $[180] !== providerFixed || $[181] !== restoreStashed || $[182] !== setDictationToolbar || $[183] !== sigils || $[184] !== t53 || $[185] !== t60 || $[186] !== t61 || $[187] !== t62 || $[188] !== t63 || $[189] !== toggleStash || $[190] !== writable) {
|
|
782
|
+
t64 = /*#__PURE__*/_jsx(T1, {
|
|
818
783
|
chatId: chatId,
|
|
819
784
|
info: info,
|
|
820
785
|
providerFixed: providerFixed,
|
|
@@ -823,63 +788,63 @@ export function Composer(t0) {
|
|
|
823
788
|
emptyDraft: empty,
|
|
824
789
|
sigils: sigils,
|
|
825
790
|
controls: controls,
|
|
826
|
-
send:
|
|
791
|
+
send: t60,
|
|
827
792
|
dictationToolbar: setDictationToolbar,
|
|
828
|
-
onFiles:
|
|
793
|
+
onFiles: t61,
|
|
829
794
|
onRestore: restoreStashed,
|
|
830
795
|
onStash: toggleStash,
|
|
831
|
-
onSigil:
|
|
832
|
-
insert:
|
|
796
|
+
onSigil: t62,
|
|
797
|
+
insert: t63
|
|
833
798
|
});
|
|
834
|
-
$[
|
|
835
|
-
$[
|
|
836
|
-
$[
|
|
837
|
-
$[
|
|
838
|
-
$[
|
|
839
|
-
$[
|
|
840
|
-
$[
|
|
841
|
-
$[
|
|
842
|
-
$[
|
|
843
|
-
$[
|
|
844
|
-
$[
|
|
845
|
-
$[
|
|
846
|
-
$[
|
|
847
|
-
$[
|
|
848
|
-
$[
|
|
849
|
-
$[
|
|
850
|
-
$[
|
|
851
|
-
} else {
|
|
852
|
-
|
|
799
|
+
$[175] = T1;
|
|
800
|
+
$[176] = chatId;
|
|
801
|
+
$[177] = controls;
|
|
802
|
+
$[178] = empty;
|
|
803
|
+
$[179] = info;
|
|
804
|
+
$[180] = providerFixed;
|
|
805
|
+
$[181] = restoreStashed;
|
|
806
|
+
$[182] = setDictationToolbar;
|
|
807
|
+
$[183] = sigils;
|
|
808
|
+
$[184] = t53;
|
|
809
|
+
$[185] = t60;
|
|
810
|
+
$[186] = t61;
|
|
811
|
+
$[187] = t62;
|
|
812
|
+
$[188] = t63;
|
|
813
|
+
$[189] = toggleStash;
|
|
814
|
+
$[190] = writable;
|
|
815
|
+
$[191] = t64;
|
|
816
|
+
} else {
|
|
817
|
+
t64 = $[191];
|
|
853
818
|
}
|
|
854
|
-
let
|
|
855
|
-
if ($[
|
|
856
|
-
|
|
819
|
+
let t65;
|
|
820
|
+
if ($[192] !== pointSurface || $[193] !== pressSurface || $[194] !== t38 || $[195] !== t39 || $[196] !== t41 || $[197] !== t42 || $[198] !== t43 || $[199] !== t44 || $[200] !== t45 || $[201] !== t46 || $[202] !== t50 || $[203] !== t51 || $[204] !== t52 || $[205] !== t64) {
|
|
821
|
+
t65 = /*#__PURE__*/_jsxs("div", {
|
|
857
822
|
className: t38,
|
|
858
823
|
onPointerOver: pointSurface,
|
|
859
824
|
onMouseDown: pressSurface,
|
|
860
|
-
children: [t39, t41, t42, t43, t44, t45, t46, t50, t51, t52,
|
|
825
|
+
children: [t39, t41, t42, t43, t44, t45, t46, t50, t51, t52, t64]
|
|
861
826
|
});
|
|
862
|
-
$[
|
|
863
|
-
$[
|
|
864
|
-
$[
|
|
865
|
-
$[
|
|
866
|
-
$[
|
|
867
|
-
$[
|
|
868
|
-
$[
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
872
|
-
$[
|
|
873
|
-
$[
|
|
874
|
-
$[
|
|
875
|
-
$[
|
|
876
|
-
$[
|
|
877
|
-
} else {
|
|
878
|
-
|
|
879
|
-
}
|
|
880
|
-
let
|
|
881
|
-
if ($[
|
|
882
|
-
|
|
827
|
+
$[192] = pointSurface;
|
|
828
|
+
$[193] = pressSurface;
|
|
829
|
+
$[194] = t38;
|
|
830
|
+
$[195] = t39;
|
|
831
|
+
$[196] = t41;
|
|
832
|
+
$[197] = t42;
|
|
833
|
+
$[198] = t43;
|
|
834
|
+
$[199] = t44;
|
|
835
|
+
$[200] = t45;
|
|
836
|
+
$[201] = t46;
|
|
837
|
+
$[202] = t50;
|
|
838
|
+
$[203] = t51;
|
|
839
|
+
$[204] = t52;
|
|
840
|
+
$[205] = t64;
|
|
841
|
+
$[206] = t65;
|
|
842
|
+
} else {
|
|
843
|
+
t65 = $[206];
|
|
844
|
+
}
|
|
845
|
+
let t66;
|
|
846
|
+
if ($[207] !== T0 || $[208] !== answerPromptsElsewhere || $[209] !== chatId || $[210] !== disabled || $[211] !== focused || $[212] !== hold || $[213] !== pending || $[214] !== t34 || $[215] !== t35 || $[216] !== t36 || $[217] !== t65) {
|
|
847
|
+
t66 = /*#__PURE__*/_jsx(T0, {
|
|
883
848
|
chatId: chatId,
|
|
884
849
|
pending: pending,
|
|
885
850
|
focused: focused,
|
|
@@ -889,120 +854,120 @@ export function Composer(t0) {
|
|
|
889
854
|
denyReason: t35,
|
|
890
855
|
onAllAnswered: t36,
|
|
891
856
|
hold: hold,
|
|
892
|
-
children:
|
|
857
|
+
children: t65
|
|
893
858
|
});
|
|
894
|
-
$[
|
|
895
|
-
$[
|
|
896
|
-
$[
|
|
897
|
-
$[
|
|
898
|
-
$[
|
|
899
|
-
$[
|
|
900
|
-
$[
|
|
901
|
-
$[
|
|
902
|
-
$[
|
|
903
|
-
$[
|
|
904
|
-
$[
|
|
905
|
-
$[
|
|
906
|
-
} else {
|
|
907
|
-
|
|
859
|
+
$[207] = T0;
|
|
860
|
+
$[208] = answerPromptsElsewhere;
|
|
861
|
+
$[209] = chatId;
|
|
862
|
+
$[210] = disabled;
|
|
863
|
+
$[211] = focused;
|
|
864
|
+
$[212] = hold;
|
|
865
|
+
$[213] = pending;
|
|
866
|
+
$[214] = t34;
|
|
867
|
+
$[215] = t35;
|
|
868
|
+
$[216] = t36;
|
|
869
|
+
$[217] = t65;
|
|
870
|
+
$[218] = t66;
|
|
871
|
+
} else {
|
|
872
|
+
t66 = $[218];
|
|
908
873
|
}
|
|
909
|
-
let
|
|
910
|
-
if ($[
|
|
911
|
-
|
|
874
|
+
let t67;
|
|
875
|
+
if ($[219] !== files.dropTarget || $[220] !== t31 || $[221] !== t33 || $[222] !== t66) {
|
|
876
|
+
t67 = /*#__PURE__*/_jsxs("div", {
|
|
912
877
|
className: t31,
|
|
913
878
|
...t32,
|
|
914
|
-
children: [t33,
|
|
879
|
+
children: [t33, t66]
|
|
915
880
|
});
|
|
916
|
-
$[
|
|
917
|
-
$[
|
|
918
|
-
$[
|
|
919
|
-
$[
|
|
920
|
-
$[
|
|
881
|
+
$[219] = files.dropTarget;
|
|
882
|
+
$[220] = t31;
|
|
883
|
+
$[221] = t33;
|
|
884
|
+
$[222] = t66;
|
|
885
|
+
$[223] = t67;
|
|
921
886
|
} else {
|
|
922
|
-
|
|
887
|
+
t67 = $[223];
|
|
923
888
|
}
|
|
924
|
-
let
|
|
925
|
-
if ($[
|
|
926
|
-
|
|
889
|
+
let t68;
|
|
890
|
+
if ($[224] !== statusItems) {
|
|
891
|
+
t68 = /*#__PURE__*/_jsx(ComposerStatusLine, {
|
|
927
892
|
items: statusItems
|
|
928
893
|
});
|
|
929
|
-
$[
|
|
930
|
-
$[
|
|
894
|
+
$[224] = statusItems;
|
|
895
|
+
$[225] = t68;
|
|
896
|
+
} else {
|
|
897
|
+
t68 = $[225];
|
|
898
|
+
}
|
|
899
|
+
const t69 = controls.confirmClear;
|
|
900
|
+
let t70;
|
|
901
|
+
if ($[226] !== t) {
|
|
902
|
+
t70 = t("composer.clear.title");
|
|
903
|
+
$[226] = t;
|
|
904
|
+
$[227] = t70;
|
|
905
|
+
} else {
|
|
906
|
+
t70 = $[227];
|
|
907
|
+
}
|
|
908
|
+
let t71;
|
|
909
|
+
if ($[228] !== t) {
|
|
910
|
+
t71 = t("composer.clear.description");
|
|
911
|
+
$[228] = t;
|
|
912
|
+
$[229] = t71;
|
|
913
|
+
} else {
|
|
914
|
+
t71 = $[229];
|
|
915
|
+
}
|
|
916
|
+
let t72;
|
|
917
|
+
if ($[230] !== t) {
|
|
918
|
+
t72 = t("composer.clear.confirm");
|
|
919
|
+
$[230] = t;
|
|
920
|
+
$[231] = t72;
|
|
931
921
|
} else {
|
|
932
|
-
|
|
922
|
+
t72 = $[231];
|
|
933
923
|
}
|
|
934
|
-
const t72 = controls.confirmClear;
|
|
935
924
|
let t73;
|
|
936
|
-
if ($[
|
|
937
|
-
t73 = t("composer.
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
925
|
+
if ($[232] !== t) {
|
|
926
|
+
t73 = t("composer.notice.clearFailed");
|
|
927
|
+
$[232] = t;
|
|
928
|
+
$[233] = t73;
|
|
940
929
|
} else {
|
|
941
|
-
t73 = $[
|
|
930
|
+
t73 = $[233];
|
|
942
931
|
}
|
|
943
932
|
let t74;
|
|
944
|
-
if ($[240] !==
|
|
945
|
-
t74 =
|
|
946
|
-
|
|
933
|
+
if ($[234] !== controls.cancelClear || $[235] !== controls.confirmClear || $[236] !== controls.forceClearThread || $[237] !== t70 || $[238] !== t71 || $[239] !== t72 || $[240] !== t73) {
|
|
934
|
+
t74 = /*#__PURE__*/_jsx(PromptDialog, {
|
|
935
|
+
open: t69,
|
|
936
|
+
title: t70,
|
|
937
|
+
description: t71,
|
|
938
|
+
confirmLabel: t72,
|
|
939
|
+
danger: true,
|
|
940
|
+
fallbackMessage: t73,
|
|
941
|
+
onConfirm: controls.forceClearThread,
|
|
942
|
+
onOpenChange: controls.cancelClear
|
|
943
|
+
});
|
|
944
|
+
$[234] = controls.cancelClear;
|
|
945
|
+
$[235] = controls.confirmClear;
|
|
946
|
+
$[236] = controls.forceClearThread;
|
|
947
|
+
$[237] = t70;
|
|
948
|
+
$[238] = t71;
|
|
949
|
+
$[239] = t72;
|
|
950
|
+
$[240] = t73;
|
|
947
951
|
$[241] = t74;
|
|
948
952
|
} else {
|
|
949
953
|
t74 = $[241];
|
|
950
954
|
}
|
|
951
955
|
let t75;
|
|
952
|
-
if ($[242] !==
|
|
953
|
-
t75 =
|
|
954
|
-
$[242] = t;
|
|
955
|
-
$[243] = t75;
|
|
956
|
-
} else {
|
|
957
|
-
t75 = $[243];
|
|
958
|
-
}
|
|
959
|
-
let t76;
|
|
960
|
-
if ($[244] !== t) {
|
|
961
|
-
t76 = t("composer.notice.clearFailed");
|
|
962
|
-
$[244] = t;
|
|
963
|
-
$[245] = t76;
|
|
964
|
-
} else {
|
|
965
|
-
t76 = $[245];
|
|
966
|
-
}
|
|
967
|
-
let t77;
|
|
968
|
-
if ($[246] !== controls.cancelClear || $[247] !== controls.confirmClear || $[248] !== controls.forceClearThread || $[249] !== t73 || $[250] !== t74 || $[251] !== t75 || $[252] !== t76) {
|
|
969
|
-
t77 = /*#__PURE__*/_jsx(PromptDialog, {
|
|
970
|
-
open: t72,
|
|
971
|
-
title: t73,
|
|
972
|
-
description: t74,
|
|
973
|
-
confirmLabel: t75,
|
|
974
|
-
danger: true,
|
|
975
|
-
fallbackMessage: t76,
|
|
976
|
-
onConfirm: controls.forceClearThread,
|
|
977
|
-
onOpenChange: controls.cancelClear
|
|
978
|
-
});
|
|
979
|
-
$[246] = controls.cancelClear;
|
|
980
|
-
$[247] = controls.confirmClear;
|
|
981
|
-
$[248] = controls.forceClearThread;
|
|
982
|
-
$[249] = t73;
|
|
983
|
-
$[250] = t74;
|
|
984
|
-
$[251] = t75;
|
|
985
|
-
$[252] = t76;
|
|
986
|
-
$[253] = t77;
|
|
987
|
-
} else {
|
|
988
|
-
t77 = $[253];
|
|
989
|
-
}
|
|
990
|
-
let t78;
|
|
991
|
-
if ($[254] !== t28 || $[255] !== t29 || $[256] !== t70 || $[257] !== t71 || $[258] !== t77) {
|
|
992
|
-
t78 = /*#__PURE__*/_jsxs("div", {
|
|
956
|
+
if ($[242] !== t28 || $[243] !== t29 || $[244] !== t67 || $[245] !== t68 || $[246] !== t74) {
|
|
957
|
+
t75 = /*#__PURE__*/_jsxs("div", {
|
|
993
958
|
className: t27,
|
|
994
|
-
children: [t28, t29,
|
|
959
|
+
children: [t28, t29, t67, t68, t74]
|
|
995
960
|
});
|
|
996
|
-
$[
|
|
997
|
-
$[
|
|
998
|
-
$[
|
|
999
|
-
$[
|
|
1000
|
-
$[
|
|
1001
|
-
$[
|
|
961
|
+
$[242] = t28;
|
|
962
|
+
$[243] = t29;
|
|
963
|
+
$[244] = t67;
|
|
964
|
+
$[245] = t68;
|
|
965
|
+
$[246] = t74;
|
|
966
|
+
$[247] = t75;
|
|
1002
967
|
} else {
|
|
1003
|
-
|
|
968
|
+
t75 = $[247];
|
|
1004
969
|
}
|
|
1005
|
-
return
|
|
970
|
+
return t75;
|
|
1006
971
|
}
|
|
1007
972
|
function _temp4(event) {
|
|
1008
973
|
event.currentTarget.toggleAttribute("data-text-cursor", surfacePartOf(event.target, event.currentTarget) !== "action");
|
|
@@ -3,7 +3,7 @@ import { useOverlayScrollbars } from '@adecore/ui';
|
|
|
3
3
|
import { Compartment, EditorState, Prec, Transaction } from '@codemirror/state';
|
|
4
4
|
import { EditorView, placeholder as placeholderText } from '@codemirror/view';
|
|
5
5
|
import { useImperativeHandle, useLayoutEffect, useRef, useState } from 'react';
|
|
6
|
-
import { useChatHost } from '../../host.js';
|
|
6
|
+
import { useChatHost } from '../../host/host.js';
|
|
7
7
|
import { composerEditorExtensions, externalChange } from './composer/editor.js';
|
|
8
8
|
import { insertAtSelection, insertSigil } from './composer/insert.js';
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
package/dist/chat/ui/EditDiff.js
CHANGED
|
@@ -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 } from './diff/diff-source-budget.js';
|
|
7
6
|
import { DiffFallbackBoundary } from './diff/DiffFallbackBoundary.js';
|
|
8
7
|
import { DiffOmitted } from './diff/DiffOmitted.js';
|
package/dist/chat/ui/GoalDock.js
CHANGED
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { Target } from 'lucide-react';
|
|
6
6
|
import { 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 { useChats } from '../../state/chats.js';
|
|
11
11
|
import { errorMessage } from '../../transport.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { ResourceUrl } from '../../host.js';
|
|
2
|
+
import type { ResourceUrl } from '../../host/host.js';
|
|
3
3
|
export declare function ImageGroup({ children }: {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}): import("react").JSX.Element;
|
|
6
|
-
|
|
6
|
+
interface ImageThumbProps {
|
|
7
7
|
source: ResourceUrl;
|
|
8
8
|
alt: string;
|
|
9
9
|
className?: string;
|
|
@@ -13,3 +13,4 @@ export interface ImageThumbProps {
|
|
|
13
13
|
onOpenChange?(open: boolean): void;
|
|
14
14
|
}
|
|
15
15
|
export declare function ImageThumb({ source, alt, className, aspect, actions, open: openProp, onOpenChange }: ImageThumbProps): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -8,8 +8,8 @@ import { useTranslation } from 'react-i18next';
|
|
|
8
8
|
import { continueTargets, hasUnreadAccount, limitsOfAccount, sessionWindow } from '../../agents/account-limits.js';
|
|
9
9
|
import { AccountDot } from '../../agents/AccountDot.js';
|
|
10
10
|
import { canContinueOn } from '../../agents/accounts.js';
|
|
11
|
-
import { useChatHost } from '../../host.js';
|
|
12
|
-
import { useHostResumeAtReset } from '../../host-hooks.js';
|
|
11
|
+
import { useChatHost } from '../../host/host.js';
|
|
12
|
+
import { useHostResumeAtReset } from '../../host/host-hooks.js';
|
|
13
13
|
import { useChatScope } from '../../scope.js';
|
|
14
14
|
import { useChats } from '../../state/chats.js';
|
|
15
15
|
import { useUsageStore } from '../../state/usage.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Components, type Options } from 'react-markdown';
|
|
2
|
-
import { type ShellCodeBlockContext } from '../../host.js';
|
|
2
|
+
import { type ShellCodeBlockContext } from '../../host/host.js';
|
|
3
3
|
import type { ReferenceToken } from '../mentions.js';
|
|
4
4
|
type ShellCodeBlockReply = Pick<ShellCodeBlockContext, 'scopeId' | 'chatId' | 'itemId'> & {
|
|
5
5
|
streaming: boolean;
|
package/dist/chat/ui/Markdown.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
7
7
|
import ReactMarkdown from 'react-markdown';
|
|
8
8
|
import remarkBreaks from 'remark-breaks';
|
|
9
9
|
import remarkGfm from 'remark-gfm';
|
|
10
|
-
import { useChatHost } from '../../host.js';
|
|
10
|
+
import { useChatHost } from '../../host/host.js';
|
|
11
11
|
import { MENTION_TONE, SKILL_TONE, TOKEN_ICON } from './chips.js';
|
|
12
12
|
import { CodeStreamingContext } from './code-streaming.js';
|
|
13
13
|
import { CodeBlock } from './CodeBlock.js';
|
|
@@ -402,7 +402,6 @@ function PlainImage(t0) {
|
|
|
402
402
|
}
|
|
403
403
|
return t1;
|
|
404
404
|
}
|
|
405
|
-
/* A ```mermaid fence, which draws what it says. */
|
|
406
405
|
function Diagram(t0) {
|
|
407
406
|
const $ = _c(10);
|
|
408
407
|
const {
|
|
@@ -3,7 +3,7 @@ import { IconButton, ScrollArea } from '@adecore/ui';
|
|
|
3
3
|
import { Code, Workflow } from 'lucide-react';
|
|
4
4
|
import { useContext, useEffect, useId, useRef, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { useHostCodeMode } from '../../host-hooks.js';
|
|
6
|
+
import { useHostCodeMode } from '../../host/host-hooks.js';
|
|
7
7
|
import { CodeStreamingContext } from './code-streaming.js';
|
|
8
8
|
import { CodeBlock } from './CodeBlock.js';
|
|
9
9
|
import { DIAGRAM_TOKENS, GROUND_TOKEN, renderOptions, svgDataUrl, themedSvg } from './mermaid.js';
|