@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,8 +2,9 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { ensureSyntaxTree, syntaxTree } from '@codemirror/language';
|
|
3
3
|
import { useEffect, useId, useState } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { useChatHost } from '../../../host.js';
|
|
6
|
-
import { useHostExpandingCommands } from '../../../host-hooks.js';
|
|
5
|
+
import { useChatHost } from '../../../host/host.js';
|
|
6
|
+
import { useHostExpandingCommands } from '../../../host/host-hooks.js';
|
|
7
|
+
import '../../../host/references.js';
|
|
7
8
|
import { useChatScope } from '../../../scope.js';
|
|
8
9
|
import { useReportedModelsByProvider } from '../../../state/chats.js';
|
|
9
10
|
import { useProviderAccounts } from '../../../state/provider-accounts.js';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { useChatHost } from '../../../host.js';
|
|
3
|
+
import { useChatHost } from '../../../host/host.js';
|
|
4
4
|
import { useChatScope } from '../../../scope.js';
|
|
5
5
|
import { errorCode, errorMessage } from '../../../transport.js';
|
|
6
6
|
import { useChatActions } from '../../actions.js';
|
|
7
7
|
import { readStoredAttachments } from '../../attachments.js';
|
|
8
8
|
import { takeBackIntoDraft } from '../../drafts.js';
|
|
9
|
-
/* Takes a queued message out of the queue and back into the draft, to be edited before it goes. */
|
|
10
9
|
export function useTakeBack({
|
|
11
10
|
chatId,
|
|
12
11
|
draft: {
|
|
@@ -4,7 +4,7 @@ import { diffDocument, patchOf } from '@adecore/merge';
|
|
|
4
4
|
import { getFiletypeFromFileName } from '@pierre/diffs';
|
|
5
5
|
import { useEffect, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { useHostCodeMode, useHostCodeThemes } from '../../../host-hooks.js';
|
|
7
|
+
import { useHostCodeMode, useHostCodeThemes } from '../../../host/host-hooks.js';
|
|
8
8
|
import { diffTexts } from '../../logic/tools.js';
|
|
9
9
|
import { useDiffSourceTokens } from '../use-diff-source-tokens.js';
|
|
10
10
|
import { diffSourceBudget } from './diff-source-budget.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { useWorkerPool } from '@pierre/diffs/react';
|
|
3
|
-
import { useChatHost } from '../../../host.js';
|
|
3
|
+
import { useChatHost } from '../../../host/host.js';
|
|
4
4
|
import DiffPool from '../DiffPool.js';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
export function LegacyDiffPool(t0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { ScrollArea } from '@adecore/ui';
|
|
3
3
|
import { MultiFileDiff } from '@pierre/diffs/react';
|
|
4
|
-
import { useHostCodeMode } from '../../../host-hooks.js';
|
|
4
|
+
import { useHostCodeMode } from '../../../host/host-hooks.js';
|
|
5
5
|
import { diffTexts } from '../../logic/tools.js';
|
|
6
6
|
import { useDiffTheme } from '../diff-theme.js';
|
|
7
7
|
import { LegacyDiffPool } from './LegacyDiffPool.js';
|
|
@@ -2,7 +2,7 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { ScrollArea } from '@adecore/ui';
|
|
3
3
|
import { FileDiff, PatchDiff } from '@pierre/diffs/react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { useHostCodeMode } from '../../../host-hooks.js';
|
|
5
|
+
import { useHostCodeMode } from '../../../host/host-hooks.js';
|
|
6
6
|
import { useDiffTheme } from '../diff-theme.js';
|
|
7
7
|
import { fullFileDiff } from '../full-diff.js';
|
|
8
8
|
import { LegacyDiffPool } from './LegacyDiffPool.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
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 { lazyNamed } from '../../../lazy.js';
|
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
5
|
const EditDiff = lazyNamed(() => import('../EditDiff.js'), 'default');
|
|
7
6
|
const UnifiedDiff = lazyNamed(() => import('../UnifiedDiff.js'), 'default');
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
interface TextBudget {
|
|
2
|
-
readonly rows: number;
|
|
3
|
-
readonly characters: number;
|
|
4
|
-
readonly lineLength: number;
|
|
5
|
-
}
|
|
6
|
-
export declare function textFitsBudget(text: string, budget: TextBudget): boolean;
|
|
7
1
|
export declare function diffSourceBudget(before: string, after: string): boolean;
|
|
8
2
|
export declare function patchSourceBudget(patch: string): boolean;
|
|
9
3
|
export declare function legacyDiffBudget(before: string, after: string, patch?: string): boolean;
|
|
10
|
-
export {};
|
|
@@ -13,12 +13,11 @@ export interface ReviewEntry {
|
|
|
13
13
|
readonly contents?: DiffContents;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
interface ReviewBudget {
|
|
17
17
|
readonly editors: number;
|
|
18
18
|
readonly rows: number;
|
|
19
19
|
readonly characters: number;
|
|
20
20
|
}
|
|
21
|
-
export declare const REVIEW_BUDGET: ReviewBudget;
|
|
22
21
|
export type ReviewSlot = 'editor' | 'deferred';
|
|
23
22
|
export declare function reviewEntries(patches: readonly ChatFileChange[], edits: readonly FileChange[]): readonly ReviewEntry[];
|
|
24
23
|
export declare function reviewSize(entry: ReviewEntry, budget?: ReviewBudget): {
|
|
@@ -26,3 +25,4 @@ export declare function reviewSize(entry: ReviewEntry, budget?: ReviewBudget): {
|
|
|
26
25
|
characters: number;
|
|
27
26
|
};
|
|
28
27
|
export declare function planReview(entries: readonly ReviewEntry[], promoted: string | null, budget?: ReviewBudget): ReadonlyMap<string, ReviewSlot>;
|
|
28
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type DiffSyntaxDocument, type DiffSyntaxTokens } from '@adecore/editor/shiki-worker';
|
|
2
2
|
import type { Highlighter, ThemeRegistration } from 'shiki';
|
|
3
|
-
import type { ChatHost } from '../../../host.js';
|
|
3
|
+
import type { ChatHost } from '../../../host/host.js';
|
|
4
4
|
export interface DiffSyntaxSession {
|
|
5
5
|
request(index: number): Promise<DiffSyntaxTokens | null>;
|
|
6
6
|
cancel(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { registerCustomTheme } from '@pierre/diffs';
|
|
3
|
-
import { useChatHost } from '../../host.js';
|
|
4
|
-
import { useHostCodeThemes } from '../../host-hooks.js';
|
|
3
|
+
import { useChatHost } from '../../host/host.js';
|
|
4
|
+
import { useHostCodeThemes } from '../../host/host-hooks.js';
|
|
5
5
|
// The library's registry is global and refuses a name twice, so what is registered is kept by name.
|
|
6
6
|
const registered = new Set();
|
|
7
7
|
/*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FileRef } from '../../host.js';
|
|
1
|
+
import { type FileRef } from '../../host/host.js';
|
|
2
2
|
export declare const FileLinkContext: import("react").Context<string | null>;
|
|
3
3
|
export declare function useFileLinkCwd(): string | null;
|
|
4
4
|
export declare function useFileLinkScopeId(): string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
|
-
import { useChatHost } from '../../host.js';
|
|
3
|
+
import { useChatHost } from '../../host/host.js';
|
|
4
4
|
import { ChatScopeContext } from '../../scope.js';
|
|
5
5
|
/*
|
|
6
6
|
* The folder a relative reference in rendered text counts from: a chat's own cwd, which is a
|
|
@@ -35,7 +35,6 @@ export function useFileLinkTarget(text) {
|
|
|
35
35
|
}
|
|
36
36
|
return t0;
|
|
37
37
|
}
|
|
38
|
-
/* Follows a reference the way the app opens a file or a folder. */
|
|
39
38
|
export function useOpenFileLink() {
|
|
40
39
|
const $ = _c(2);
|
|
41
40
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
2
|
import type { Highlighter } from 'shiki';
|
|
3
|
-
import { type ChatHost } from '../../host.js';
|
|
3
|
+
import { type ChatHost } from '../../host/host.js';
|
|
4
4
|
import { type CodeToken, type Tokenize } from './code-lines.js';
|
|
5
5
|
export type { Highlighter };
|
|
6
6
|
export type GrammarState = ReturnType<Highlighter['getLastGrammarState']>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useChatHost } from '../../host.js';
|
|
2
|
+
import { useChatHost } from '../../host/host.js';
|
|
3
3
|
import { TokenCache } from './code-lines.js';
|
|
4
4
|
import { shikiThemeOf } from './code-theme.js';
|
|
5
5
|
// A plain language needs no grammar; shiki draws it in the theme's own foreground.
|
|
@@ -127,7 +127,6 @@ export function codeHighlighter(source) {
|
|
|
127
127
|
}
|
|
128
128
|
return highlighter;
|
|
129
129
|
}
|
|
130
|
-
/* The code highlighter of the host this is rendered under. */
|
|
131
130
|
export function useCodeHighlighter() {
|
|
132
131
|
const $ = _c(2);
|
|
133
132
|
const t0 = useChatHost();
|
package/dist/chat/ui/index.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ export { ChatActivity, StatusIcon } from './ChatActivity.js';
|
|
|
5
5
|
export { DisplayImage } from './DisplayImage.js';
|
|
6
6
|
export { CodeBlock } from './CodeBlock.js';
|
|
7
7
|
export { Composer } from './Composer.js';
|
|
8
|
-
export { type ComposerInputHandle, ComposerInput
|
|
8
|
+
export { type ComposerInputHandle, ComposerInput } from './ComposerInput.js';
|
|
9
9
|
export { default as DiffPool } from './DiffPool.js';
|
|
10
10
|
export { default as EditDiff } from './EditDiff.js';
|
|
11
11
|
export { FadingWords } from './FadingWords.js';
|
|
12
|
-
export {
|
|
13
|
-
export { ImageThumb
|
|
12
|
+
export { GoalPill } from './GoalDock.js';
|
|
13
|
+
export { ImageThumb } from './ImageView.js';
|
|
14
14
|
export { LimitDock, LimitPill } from './LimitState.js';
|
|
15
15
|
export { ReplyMarkdown, MessageMarkdown, Markdown } from './Markdown.js';
|
|
16
16
|
export { ModelPicker } from './Pickers.js';
|
|
@@ -22,32 +22,24 @@ export { SubagentTitleCrumb, SubagentBreadcrumb } from './SubagentControls.js';
|
|
|
22
22
|
export { SubagentInfo } from './SubagentInfo.js';
|
|
23
23
|
export { SubagentTimeline } from './SubagentTimeline.js';
|
|
24
24
|
export { Timeline } from './Timeline.js';
|
|
25
|
-
export { TimelineMenuPopup } from './TimelineMenu.js';
|
|
26
25
|
export { default as UnifiedDiff } from './UnifiedDiff.js';
|
|
27
26
|
export { UploadThumb } from './UploadThumb.js';
|
|
28
|
-
export { VisualPageFrame
|
|
27
|
+
export { VisualPageFrame } from './VisualFrame.js';
|
|
29
28
|
export { WelcomeGreeting } from './Welcome.js';
|
|
30
29
|
export { externalChange, composerEditorExtensions } from './composer/editor.js';
|
|
31
|
-
export { createDiffSyntaxRuntime, diffSyntaxRuntime, type DiffSyntaxRuntime, type DiffSyntaxRuntimeOptions, type DiffSyntaxSession, type DiffSyntaxMapping, type DiffSourceTokenSession, diffSourceTokens } from './diff-syntax.js';
|
|
32
|
-
export { useDiffTheme } from './diff-theme.js';
|
|
33
|
-
export type { UnifiedDiffProps } from './diff/diff-props.js';
|
|
34
30
|
export { FileLinkContext, useFileLinkCwd } from './file-links.js';
|
|
35
31
|
export { type ChatFindField, type FindReveal } from './find-reveal.js';
|
|
36
32
|
export type { DiffContents } from './full-diff.js';
|
|
37
|
-
export { type UiBlockFrameProps, UiBlockFrame, type UiBlockFix
|
|
38
|
-
export {
|
|
39
|
-
export { uiChartData, type UiChartSeries, type UiChartValues, type UiChartData } from './intelligent-ui/chart-data.js';
|
|
33
|
+
export { type UiBlockFrameProps, UiBlockFrame, type UiBlockFix } from './intelligent-ui/UiBlockFrame.js';
|
|
34
|
+
export { uiChartData, type UiChartValues, type UiChartData } from './intelligent-ui/chart-data.js';
|
|
40
35
|
export { uiNodeLabel } from './intelligent-ui/node-text.js';
|
|
41
36
|
export { UI_RENDERERS } from './intelligent-ui/registry.js';
|
|
42
|
-
export type { UiRenderContext, UiRendererProps, UiLinkTarget,
|
|
43
|
-
export { uiTableColumns, type
|
|
44
|
-
export type { QuoteTaker } from './quote-selection.js';
|
|
45
|
-
export { ReplyContext } from './reply-context.js';
|
|
37
|
+
export type { UiRenderContext, UiRendererProps, UiLinkTarget, UiLiveStatus, UiLiveNodeState } from './intelligent-ui/render-context.js';
|
|
38
|
+
export { uiTableColumns, type UiTableColumn } from './intelligent-ui/table-data.js';
|
|
46
39
|
export { ForksRow } from './rows/ForksRow.js';
|
|
47
40
|
export { GeneratedImageRow } from './rows/GeneratedImageRow.js';
|
|
48
|
-
export { ReportRow,
|
|
41
|
+
export { ReportRow, NoteRow, AgentTurnRow, CompactionRow } from './rows/MessageRows.js';
|
|
49
42
|
export { TaskRow } from './rows/TaskRow.js';
|
|
50
43
|
export { WorkRow, WorkGroupRow, WorkingRow } from './rows/WorkRows.js';
|
|
51
44
|
export { WorkflowRow } from './rows/WorkflowRow.js';
|
|
52
45
|
export { WorkflowAgentLine } from './WorkflowAgentLine.js';
|
|
53
|
-
export { useDiffSourceTokens } from './use-diff-source-tokens.js';
|
package/dist/chat/ui/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export { ComposerInput } from './ComposerInput.js';
|
|
|
10
10
|
export { default as DiffPool } from './DiffPool.js';
|
|
11
11
|
export { default as EditDiff } from './EditDiff.js';
|
|
12
12
|
export { FadingWords } from './FadingWords.js';
|
|
13
|
-
export {
|
|
13
|
+
export { GoalPill } from './GoalDock.js';
|
|
14
14
|
export { ImageThumb } from './ImageView.js';
|
|
15
15
|
export { LimitDock, LimitPill } from './LimitState.js';
|
|
16
16
|
export { ReplyMarkdown, MessageMarkdown, Markdown } from './Markdown.js';
|
|
@@ -22,28 +22,22 @@ export { SubagentTitleCrumb, SubagentBreadcrumb } from './SubagentControls.js';
|
|
|
22
22
|
export { SubagentInfo } from './SubagentInfo.js';
|
|
23
23
|
export { SubagentTimeline } from './SubagentTimeline.js';
|
|
24
24
|
export { Timeline } from './Timeline.js';
|
|
25
|
-
export { TimelineMenuPopup } from './TimelineMenu.js';
|
|
26
25
|
export { default as UnifiedDiff } from './UnifiedDiff.js';
|
|
27
26
|
export { UploadThumb } from './UploadThumb.js';
|
|
28
27
|
export { VisualPageFrame } from './VisualFrame.js';
|
|
29
28
|
export { WelcomeGreeting } from './Welcome.js';
|
|
30
29
|
export { externalChange, composerEditorExtensions } from './composer/editor.js';
|
|
31
|
-
export { createDiffSyntaxRuntime, diffSyntaxRuntime, diffSourceTokens } from './diff-syntax.js';
|
|
32
|
-
export { useDiffTheme } from './diff-theme.js';
|
|
33
30
|
export { FileLinkContext, useFileLinkCwd } from './file-links.js';
|
|
34
31
|
export {} from './find-reveal.js';
|
|
35
32
|
export { UiBlockFrame } from './intelligent-ui/UiBlockFrame.js';
|
|
36
|
-
export { UiReply } from './intelligent-ui/UiReply.js';
|
|
37
33
|
export { uiChartData } from './intelligent-ui/chart-data.js';
|
|
38
34
|
export { uiNodeLabel } from './intelligent-ui/node-text.js';
|
|
39
35
|
export { UI_RENDERERS } from './intelligent-ui/registry.js';
|
|
40
36
|
export { uiTableColumns } from './intelligent-ui/table-data.js';
|
|
41
|
-
export { ReplyContext } from './reply-context.js';
|
|
42
37
|
export { ForksRow } from './rows/ForksRow.js';
|
|
43
38
|
export { GeneratedImageRow } from './rows/GeneratedImageRow.js';
|
|
44
|
-
export { ReportRow,
|
|
39
|
+
export { ReportRow, NoteRow, AgentTurnRow, CompactionRow } from './rows/MessageRows.js';
|
|
45
40
|
export { TaskRow } from './rows/TaskRow.js';
|
|
46
41
|
export { WorkRow, WorkGroupRow, WorkingRow } from './rows/WorkRows.js';
|
|
47
42
|
export { WorkflowRow } from './rows/WorkflowRow.js';
|
|
48
|
-
export { WorkflowAgentLine } from './WorkflowAgentLine.js';
|
|
49
|
-
export { useDiffSourceTokens } from './use-diff-source-tokens.js';
|
|
43
|
+
export { WorkflowAgentLine } from './WorkflowAgentLine.js';
|
|
@@ -5,7 +5,7 @@ export interface UiBlockFix {
|
|
|
5
5
|
code: string;
|
|
6
6
|
message: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface UiBlockFooterProps {
|
|
9
9
|
live?: UiLiveStatus | null;
|
|
10
10
|
answered?: {
|
|
11
11
|
label: string;
|
|
@@ -21,3 +21,4 @@ export interface UiBlockFrameProps extends UiBlockFooterProps {
|
|
|
21
21
|
className?: string;
|
|
22
22
|
}
|
|
23
23
|
export declare function UiBlockFrame({ nodes, phase, children, className, ...footer }: UiBlockFrameProps): import("react").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { Info, Lock, Radio, TriangleAlert } from 'lucide-react';
|
|
6
6
|
import { useId, useLayoutEffect, useRef, 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 { uiBlockHead, uiReasonText } from './node-text.js';
|
|
10
10
|
import { UiHeadContext } from './render-context.js';
|
|
11
11
|
import { useLater } from './use-later.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type UiFallbackProblem = {
|
|
2
2
|
kind: 'unknown';
|
|
3
3
|
component: string;
|
|
4
4
|
} | {
|
|
@@ -8,3 +8,4 @@ export declare function UiFallbackPart({ fallback, problem }: {
|
|
|
8
8
|
fallback: string;
|
|
9
9
|
problem: UiFallbackProblem;
|
|
10
10
|
}): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import { ErrorBoundary, Tooltip } from '@adecore/ui';
|
|
|
4
4
|
import { Component, createContext, Fragment, memo, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import ReactMarkdown from 'react-markdown';
|
|
7
|
-
import { useChatHost } from '../../../host.js';
|
|
7
|
+
import { useChatHost } from '../../../host/host.js';
|
|
8
8
|
import { ReplyMarkdown } from '../Markdown.js';
|
|
9
9
|
import { rehypeFadeWords } from '../rehype-fade.js';
|
|
10
10
|
import { UiReplyNavigationContext } from '../reply-context.js';
|
|
@@ -2,7 +2,7 @@ import type { UiProps } from '@adecore/intelligent-ui';
|
|
|
2
2
|
export declare const UI_CHART_SERIES = 6;
|
|
3
3
|
export declare const UI_CHART_ROWS = 60;
|
|
4
4
|
type ChartKind = UiProps<'Chart'>['kind'];
|
|
5
|
-
|
|
5
|
+
interface UiChartSeries {
|
|
6
6
|
key: string;
|
|
7
7
|
values: (number | null)[];
|
|
8
8
|
}
|
|
@@ -315,7 +315,6 @@ function ValuesTable(t0) {
|
|
|
315
315
|
}
|
|
316
316
|
return t13;
|
|
317
317
|
}
|
|
318
|
-
/* The values of one category beside the pointer. */
|
|
319
318
|
function Readout(t0) {
|
|
320
319
|
const $ = _c(16);
|
|
321
320
|
const {
|
|
@@ -396,7 +395,6 @@ function Readout(t0) {
|
|
|
396
395
|
}
|
|
397
396
|
return t5;
|
|
398
397
|
}
|
|
399
|
-
/* Bars and lines over a value axis, in SVG at the measured width. */
|
|
400
398
|
function VerticalChart(t0) {
|
|
401
399
|
const $ = _c(81);
|
|
402
400
|
const {
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { CircleCheck } from 'lucide-react';
|
|
6
6
|
import { useId, 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 { UiFallbackPart } from '../UiFallbackPart.js';
|
|
10
10
|
import { useLater } from '../use-later.js';
|
|
11
11
|
/* A context this long may run past its two lines, so the row offers all of it in a tooltip. */
|
|
@@ -6,7 +6,7 @@ export declare function GalleryRenderer({ node, children }: UiRendererProps<UiPr
|
|
|
6
6
|
export declare function CompareRenderer({ node, children, context }: UiRendererProps<UiProps<'Compare'>>): import("react").JSX.Element;
|
|
7
7
|
export declare function ModelRenderer({ node, children, context }: UiRendererProps<UiProps<'Model'>>): import("react").JSX.Element;
|
|
8
8
|
export declare function SourcesRenderer({ node, children }: UiRendererProps<UiProps<'Sources'>>): import("react").JSX.Element;
|
|
9
|
-
|
|
9
|
+
interface UiSourceCitationProps {
|
|
10
10
|
number: number;
|
|
11
11
|
title: string;
|
|
12
12
|
url: string;
|
|
@@ -15,3 +15,4 @@ export interface UiSourceCitationProps {
|
|
|
15
15
|
}
|
|
16
16
|
export declare function UiSourceCitation({ number, title, url, onReveal, className }: UiSourceCitationProps): import("react").JSX.Element;
|
|
17
17
|
export declare function SourceRenderer({ node, context }: UiRendererProps<UiProps<'Source'>>): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -5,8 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { Box } from 'lucide-react';
|
|
6
6
|
import { createContext, useContext, useId, useState } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import { useChatHost } from '../../../../host.js';
|
|
9
|
-
import { useHostAttachmentUrl } from '../../../../host-hooks.js';
|
|
8
|
+
import { useChatHost } from '../../../../host/host.js';
|
|
9
|
+
import { useHostAttachmentUrl } from '../../../../host/host-hooks.js';
|
|
10
10
|
import { CodeStreamingContext } from '../../code-streaming.js';
|
|
11
11
|
import { CodeBlock } from '../../CodeBlock.js';
|
|
12
12
|
import { DisplayImage } from '../../DisplayImage.js';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { UiProps } from '@adecore/intelligent-ui';
|
|
2
|
-
import type {
|
|
3
|
-
export declare function UiLinkChip({ target, context }: {
|
|
4
|
-
target: UiLinkTarget;
|
|
5
|
-
context: UiRenderContext;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
2
|
+
import type { UiRendererProps } from '../render-context.js';
|
|
7
3
|
export declare function FileRenderer({ node, children, context }: UiRendererProps<UiProps<'File'>>): import("react").JSX.Element;
|
|
8
4
|
export declare function DiffRenderer({ node, children, context }: UiRendererProps<UiProps<'Diff'>>): import("react").JSX.Element;
|
|
9
5
|
export declare function CommitRenderer({ node, children, context }: UiRendererProps<UiProps<'Commit'>>): import("react").JSX.Element;
|
|
@@ -91,7 +91,7 @@ function chipFace(target, link) {
|
|
|
91
91
|
* can open the target; one it cannot, outside the project or gone, stays mono text with the reason
|
|
92
92
|
* in a tooltip. A chip fades in, since a link reads as text until the host checked it.
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
function UiLinkChip(t0) {
|
|
95
95
|
const $ = _c(12);
|
|
96
96
|
const {
|
|
97
97
|
target,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const MAX_LIVE_MAPS = 4;
|
|
2
|
-
|
|
2
|
+
type MapSlotState = 'idle' | 'granted' | 'queued';
|
|
3
3
|
export declare class MapSlots {
|
|
4
4
|
private readonly capacity;
|
|
5
5
|
private readonly held;
|
|
@@ -13,8 +13,8 @@ export declare class MapSlots {
|
|
|
13
13
|
subscribe: (listener: () => void) => (() => void);
|
|
14
14
|
private changed;
|
|
15
15
|
}
|
|
16
|
-
export declare function pageMapSlots(): MapSlots;
|
|
17
16
|
export declare function useMapSlot(id: string, wanted: boolean, slots?: MapSlots): {
|
|
18
17
|
state: MapSlotState;
|
|
19
18
|
take(): void;
|
|
20
19
|
};
|
|
20
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LngLatBoundsLike, MapOptions } from 'maplibre-gl';
|
|
2
|
-
|
|
2
|
+
type MapStyle = Exclude<MapOptions['style'], string | undefined>;
|
|
3
3
|
export interface MapColors {
|
|
4
4
|
land: string;
|
|
5
5
|
water: string;
|
|
@@ -9,17 +9,11 @@ export interface MapPoint {
|
|
|
9
9
|
lat: number;
|
|
10
10
|
lon: number;
|
|
11
11
|
}
|
|
12
|
-
export declare const MAP_MAX_ZOOM: {
|
|
13
|
-
readonly tiles: 16;
|
|
14
|
-
readonly outline: 6;
|
|
15
|
-
};
|
|
16
|
-
export declare const MAP_FIT_PADDING = 32;
|
|
17
12
|
export declare function mapFitOptions(outline: boolean): {
|
|
18
13
|
padding: number;
|
|
19
14
|
maxZoom: number;
|
|
20
15
|
};
|
|
21
|
-
|
|
22
|
-
export interface ScreenPoint {
|
|
16
|
+
interface ScreenPoint {
|
|
23
17
|
id: string;
|
|
24
18
|
x: number;
|
|
25
19
|
y: number;
|
|
@@ -28,3 +22,4 @@ export declare function spreadOverlaps(points: readonly ScreenPoint[]): Map<stri
|
|
|
28
22
|
export declare function baseMapStyle({ land, water }: MapColors): MapStyle;
|
|
29
23
|
export declare function localizedTextField(original: unknown, field: string): unknown;
|
|
30
24
|
export declare function boundsOf(points: readonly MapPoint[]): LngLatBoundsLike | null;
|
|
25
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { BASE_LAND_JSON } from './base-land.js';
|
|
2
2
|
/* How far a map zooms to fit its points: street level with tiles, and only a country or two on the outline, which has nothing finer. */
|
|
3
|
-
|
|
3
|
+
const MAP_MAX_ZOOM = {
|
|
4
4
|
tiles: 16,
|
|
5
5
|
outline: 6
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
export const MAP_FIT_PADDING = 32;
|
|
7
|
+
const MAP_FIT_PADDING = 32;
|
|
9
8
|
/* What fits every place in view: the first view and the way back to it share it, so they cannot drift apart. */
|
|
10
9
|
export function mapFitOptions(outline) {
|
|
11
10
|
return {
|
|
@@ -13,8 +12,7 @@ export function mapFitOptions(outline) {
|
|
|
13
12
|
maxZoom: outline ? MAP_MAX_ZOOM.outline : MAP_MAX_ZOOM.tiles
|
|
14
13
|
};
|
|
15
14
|
}
|
|
16
|
-
|
|
17
|
-
export const MAP_MARKER_SIZE = 20;
|
|
15
|
+
const MAP_MARKER_SIZE = 20;
|
|
18
16
|
// Whole pixels to try around a place, nearest ring first: right, below, left, above, then the corners.
|
|
19
17
|
const SPREAD_STEPS = [[20, 0], [0, 20], [-20, 0], [0, -20], [15, 15], [-15, 15], [-15, -15], [15, -15], [40, 0], [0, 40], [-40, 0], [0, -40], [30, 30], [-30, 30], [-30, -30], [30, -30]];
|
|
20
18
|
/*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'maplibre-gl/dist/maplibre-gl.css';
|
|
2
|
-
import { type UiMapSource } from '../../../../host.js';
|
|
2
|
+
import { type UiMapSource } from '../../../../host/host.js';
|
|
3
3
|
import { type MapPoint } from './map-style.js';
|
|
4
4
|
export type MapViewStatus = 'loading' | 'tiles' | 'base' | 'offline' | 'unavailable' | 'failed' | 'lost';
|
|
5
5
|
export interface MapMarker extends MapPoint {
|
|
@@ -4,8 +4,8 @@ import { Maximize, Minus, Plus } from 'lucide-react';
|
|
|
4
4
|
import { Map as MapLibreMap, Marker, setWorkerUrl } from 'maplibre-gl';
|
|
5
5
|
import { useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import { useChatHost } from '../../../../host.js';
|
|
8
|
-
import { useHostCodeMode } from '../../../../host-hooks.js';
|
|
7
|
+
import { useChatHost } from '../../../../host/host.js';
|
|
8
|
+
import { useHostCodeMode } from '../../../../host/host-hooks.js';
|
|
9
9
|
import { watchTheme } from '../../theme-watch.js';
|
|
10
10
|
import { baseMapStyle, boundsOf, localizedTextField, mapFitOptions, spreadOverlaps } from './map-style.js';
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { Button, LazyBoundary, Spinner } from '@adecore/ui';
|
|
2
|
+
import { Button, LazyBoundary, Spinner, lazyNamed } from '@adecore/ui';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useId, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { useChatHost } from '../../../../host.js';
|
|
7
|
-
import { useHostMapSource } from '../../../../host-hooks.js';
|
|
8
|
-
import { lazyNamed } from '../../../../lazy.js';
|
|
6
|
+
import { useChatHost } from '../../../../host/host.js';
|
|
7
|
+
import { useHostMapSource } from '../../../../host/host-hooks.js';
|
|
9
8
|
import { DiffFallbackBoundary } from '../../diff/DiffFallbackBoundary.js';
|
|
10
9
|
import { uiChildrenOf, uiNodeLabel } from '../node-text.js';
|
|
11
10
|
import { useInView } from '../use-in-view.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UiBlock } from '@adecore/intelligent-ui';
|
|
2
|
-
|
|
2
|
+
type UiReplyPart = {
|
|
3
3
|
kind: 'text';
|
|
4
4
|
text: string;
|
|
5
5
|
} | {
|
|
@@ -7,3 +7,4 @@ export type UiReplyPart = {
|
|
|
7
7
|
block: UiBlock;
|
|
8
8
|
};
|
|
9
9
|
export declare function uiReplyParts(text: string, blocks: readonly UiBlock[], streaming?: boolean): UiReplyPart[];
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UiProps, UiViewNode } from '@adecore/intelligent-ui';
|
|
2
|
-
|
|
2
|
+
type UiColumnKind = NonNullable<UiProps<'Column'>['as']>;
|
|
3
3
|
export interface UiTableColumn {
|
|
4
4
|
key: string;
|
|
5
5
|
title: string;
|
|
@@ -29,3 +29,4 @@ export declare const UI_TABLE_ROWS = 50;
|
|
|
29
29
|
export declare function isNumericColumn(column: UiTableColumn): boolean;
|
|
30
30
|
export declare function uiTableColumns(node: UiViewNode<UiProps<'Table'>>): UiTableColumn[];
|
|
31
31
|
export declare function uiTableCell(value: unknown, column: UiTableColumn): UiTableCell;
|
|
32
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { uiInputValues, UI_HOST_LIMITS, UiState } from '@adecore/intelligent-ui';
|
|
3
3
|
import { uiLinkTargets } from '@adecore/intelligent-ui/links';
|
|
4
4
|
import { useEffect, useRef, useState } from 'react';
|
|
5
|
-
import { useChatHost } from '../../../host.js';
|
|
5
|
+
import { useChatHost } from '../../../host/host.js';
|
|
6
6
|
// Inputs that change in a run, such as a dragged slider, check their links once the run rested.
|
|
7
7
|
const LINK_SETTLE_MS = 300;
|
|
8
8
|
export function useUiLinks(block, state, context, reads, frozen) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { uiInputValues, uiNodeQueries, UI_CATALOG_VERSION, UI_HOST_LIMITS, UiState } from '@adecore/intelligent-ui';
|
|
3
3
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
4
|
-
import { useChatHost } from '../../../host.js';
|
|
4
|
+
import { useChatHost } from '../../../host/host.js';
|
|
5
5
|
import { UiPageMemory } from './block-local.js';
|
|
6
6
|
const NO_READINGS = {};
|
|
7
7
|
// A changed input reads once it has rested this long, so dragging a slider reads its last value only.
|
|
@@ -324,7 +324,6 @@ function openingFence(content) {
|
|
|
324
324
|
direct: !/[\\&]/.test(info.split(/[ \t]/, 1)[0])
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
|
-
/* A line without the carriage return of a CRLF line ending. */
|
|
328
327
|
function withoutReturn(line) {
|
|
329
328
|
return line.endsWith('\r') ? line.slice(0, -1) : line;
|
|
330
329
|
}
|