@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { useChatHost } from '../host.js';
|
|
3
|
+
import { useChatHost } from '../host/host.js';
|
|
4
4
|
import { accountColor } from './accounts.js';
|
|
5
5
|
/* The color an account wears, or the app's accent while it wears none of the accents. */
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/dist/agents/AgentIcon.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Icon } from '@adecore/ui';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { Bot } from 'lucide-react';
|
|
5
5
|
import { siClaude, siGithubcopilot, siGooglegemini } from 'simple-icons';
|
|
6
|
-
import {
|
|
6
|
+
import { useChatHost } from '../host/host.js';
|
|
7
7
|
import { PROVIDER_PATHS } from './provider-paths.js';
|
|
8
8
|
// simple-icons removed OpenAI's mark at its request, so Codex reuses the usage page's path.
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -26,81 +26,73 @@ const BUILT_IN_MARKS = {
|
|
|
26
26
|
copilot: siGithubcopilot
|
|
27
27
|
};
|
|
28
28
|
export function AgentIcon(t0) {
|
|
29
|
-
const $ = _c(
|
|
29
|
+
const $ = _c(14);
|
|
30
30
|
const {
|
|
31
31
|
kind,
|
|
32
32
|
size: t1,
|
|
33
33
|
className
|
|
34
34
|
} = t0;
|
|
35
35
|
const size = t1 === undefined ? 14 : t1;
|
|
36
|
-
|
|
37
|
-
if ($[0] !== kind) {
|
|
38
|
-
t2 = hostAgentMark(kind) ?? BUILT_IN_MARKS[kind];
|
|
39
|
-
$[0] = kind;
|
|
40
|
-
$[1] = t2;
|
|
41
|
-
} else {
|
|
42
|
-
t2 = $[1];
|
|
43
|
-
}
|
|
44
|
-
const mark = t2;
|
|
36
|
+
const mark = useChatHost().agentMarks?.[kind] ?? BUILT_IN_MARKS[kind];
|
|
45
37
|
if (!mark) {
|
|
46
|
-
let
|
|
47
|
-
if ($[
|
|
48
|
-
|
|
38
|
+
let t2;
|
|
39
|
+
if ($[0] !== className || $[1] !== size) {
|
|
40
|
+
t2 = /*#__PURE__*/_jsx(Icon, {
|
|
49
41
|
icon: Bot,
|
|
50
42
|
size: size,
|
|
51
43
|
className: className
|
|
52
44
|
});
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
45
|
+
$[0] = className;
|
|
46
|
+
$[1] = size;
|
|
47
|
+
$[2] = t2;
|
|
56
48
|
} else {
|
|
57
|
-
|
|
49
|
+
t2 = $[2];
|
|
58
50
|
}
|
|
59
|
-
return
|
|
51
|
+
return t2;
|
|
60
52
|
}
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
let
|
|
64
|
-
if ($[
|
|
65
|
-
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
53
|
+
const t2 = mark.title;
|
|
54
|
+
const t3 = mark.viewBox ?? "0 0 24 24";
|
|
55
|
+
let t4;
|
|
56
|
+
if ($[3] !== className) {
|
|
57
|
+
t4 = clsx("align-middle", className);
|
|
58
|
+
$[3] = className;
|
|
59
|
+
$[4] = t4;
|
|
68
60
|
} else {
|
|
69
|
-
|
|
61
|
+
t4 = $[4];
|
|
70
62
|
}
|
|
71
|
-
const
|
|
72
|
-
let
|
|
73
|
-
if ($[
|
|
74
|
-
|
|
63
|
+
const t5 = mark.fillRule ?? "nonzero";
|
|
64
|
+
let t6;
|
|
65
|
+
if ($[5] !== mark.path || $[6] !== t5) {
|
|
66
|
+
t6 = /*#__PURE__*/_jsx("path", {
|
|
75
67
|
d: mark.path,
|
|
76
|
-
fillRule:
|
|
68
|
+
fillRule: t5
|
|
77
69
|
});
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
80
|
-
$[
|
|
70
|
+
$[5] = mark.path;
|
|
71
|
+
$[6] = t5;
|
|
72
|
+
$[7] = t6;
|
|
81
73
|
} else {
|
|
82
|
-
|
|
74
|
+
t6 = $[7];
|
|
83
75
|
}
|
|
84
|
-
let
|
|
85
|
-
if ($[
|
|
86
|
-
|
|
76
|
+
let t7;
|
|
77
|
+
if ($[8] !== mark.title || $[9] !== size || $[10] !== t3 || $[11] !== t4 || $[12] !== t6) {
|
|
78
|
+
t7 = /*#__PURE__*/_jsx("svg", {
|
|
87
79
|
role: "img",
|
|
88
|
-
"aria-label":
|
|
89
|
-
viewBox:
|
|
80
|
+
"aria-label": t2,
|
|
81
|
+
viewBox: t3,
|
|
90
82
|
width: size,
|
|
91
83
|
height: size,
|
|
92
84
|
fill: "currentColor",
|
|
93
|
-
className:
|
|
94
|
-
children:
|
|
85
|
+
className: t4,
|
|
86
|
+
children: t6
|
|
95
87
|
});
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
88
|
+
$[8] = mark.title;
|
|
89
|
+
$[9] = size;
|
|
90
|
+
$[10] = t3;
|
|
91
|
+
$[11] = t4;
|
|
92
|
+
$[12] = t6;
|
|
93
|
+
$[13] = t7;
|
|
102
94
|
} else {
|
|
103
|
-
|
|
95
|
+
t7 = $[13];
|
|
104
96
|
}
|
|
105
|
-
return
|
|
97
|
+
return t7;
|
|
106
98
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AgentKind, type ProviderAccount, type ProviderAccounts, type ProviderAccountStatus } from '@adecore/agent-contracts';
|
|
2
|
-
import type { AccentChoice, ChatHost } from '../host.js';
|
|
2
|
+
import type { AccentChoice, AccountRule, ChatHost } from '../host/host.js';
|
|
3
3
|
export declare function accountColor(color: string | undefined, accents: readonly AccentChoice[]): string | undefined;
|
|
4
4
|
export declare const FOLDER_VARIABLES: Partial<Record<AgentKind, string>>;
|
|
5
5
|
export interface AccountEntry {
|
|
@@ -11,16 +11,12 @@ export interface AccountEntry {
|
|
|
11
11
|
export declare function accountsOfKind(accounts: ProviderAccounts | null, kind: AgentKind): AccountEntry[];
|
|
12
12
|
export declare function topAccountEntry(entries: readonly AccountEntry[]): AccountEntry | null;
|
|
13
13
|
export declare function movedIds(ids: readonly string[], id: string, to: number): string[];
|
|
14
|
-
export type AccountRule = Partial<Record<string, {
|
|
15
|
-
default?: string;
|
|
16
|
-
off?: readonly string[];
|
|
17
|
-
}>>;
|
|
18
14
|
export declare function projectOffered(entries: readonly AccountEntry[], rule: AccountRule | null | undefined, kind: AgentKind, current: string | undefined): AccountEntry[];
|
|
19
15
|
export declare function projectDefault(entries: readonly AccountEntry[], rule: AccountRule | null | undefined, kind: AgentKind): string | null;
|
|
20
16
|
export declare function accountName(entry: Pick<AccountEntry, 'id' | 'account' | 'isDefault'>, providerName: string): string;
|
|
21
17
|
export type AccountLogin = 'terminal' | 'chat' | null;
|
|
22
18
|
export declare function accountLoginOf(accounts: ProviderAccounts | null | undefined, kind: AgentKind): AccountLogin;
|
|
23
|
-
|
|
19
|
+
type AccountTone = 'muted' | 'needs-you' | 'error';
|
|
24
20
|
export declare const ACCOUNT_TONE_CLASSES: Record<AccountTone, string>;
|
|
25
21
|
export declare function accountStatusLine(status: ProviderAccountStatus | null, canLogIn: boolean): {
|
|
26
22
|
text: string;
|
|
@@ -31,3 +27,4 @@ export declare function freeAccountColor(entries: readonly AccountEntry[], accen
|
|
|
31
27
|
export declare function offeredAccounts(entries: readonly AccountEntry[], current: string | undefined): AccountEntry[];
|
|
32
28
|
export declare function hasAccountChoice(entries: readonly AccountEntry[]): boolean;
|
|
33
29
|
export declare function canContinueOn(accounts: ProviderAccounts | null, kind: AgentKind, from: string | undefined, to: string | undefined): boolean;
|
|
30
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AgentKind, ModelInfo, ProviderInfo } from '@adecore/agent-contracts';
|
|
2
2
|
export declare function modelNameFromSlug(slug: string): string;
|
|
3
3
|
export declare function modelName(slug: string, models: readonly ModelInfo[] | undefined): string;
|
|
4
|
-
|
|
4
|
+
interface AgentChip {
|
|
5
5
|
readonly mark: 'logo' | 'icon';
|
|
6
6
|
readonly name: string;
|
|
7
7
|
readonly model: string;
|
|
@@ -10,3 +10,4 @@ export declare function agentChipOf(providers: readonly ProviderInfo[], provider
|
|
|
10
10
|
export declare function useModelName(provider: AgentKind | undefined, slug: string): string;
|
|
11
11
|
export declare function sharedModelPrefix(models: readonly ModelInfo[]): string;
|
|
12
12
|
export declare function shortModelName(name: string, models: readonly ModelInfo[] | undefined): string;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ModelInfo, ProviderInfo } from '@adecore/agent-contracts';
|
|
2
|
-
|
|
2
|
+
interface ModelRequirement {
|
|
3
3
|
cli: string;
|
|
4
4
|
minVersion: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function modelRequirementOf(model: ModelInfo, provider: ProviderInfo, reported: ReadonlySet<string>): ModelRequirement | null;
|
|
7
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AgentKind, UsageProvider } from '@adecore/agent-contracts';
|
|
2
2
|
export declare const PROVIDER_PATHS: Record<UsageProvider, string>;
|
|
3
|
-
export declare function hasProviderLogo(kind: AgentKind): kind is 'claude' | 'codex' | 'anthropic-claude-api';
|
|
3
|
+
export declare function hasProviderLogo(kind: AgentKind | null | undefined): kind is 'claude' | 'codex' | 'anthropic-claude-api';
|
|
4
4
|
export declare function providerFillRule(provider: UsageProvider): 'evenodd' | 'nonzero';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { type LucideIcon } from 'lucide-react';
|
|
2
2
|
export type StatusWord = 'running' | 'paused' | 'done' | 'failed' | 'cancelled';
|
|
3
|
-
|
|
3
|
+
interface StatusLook {
|
|
4
4
|
icon: LucideIcon;
|
|
5
5
|
tone: string;
|
|
6
6
|
spins: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare function statusLookOf(word: StatusWord): StatusLook;
|
|
9
|
-
|
|
9
|
+
interface TaskState {
|
|
10
10
|
status: 'open' | 'done' | 'failed' | 'cancelled';
|
|
11
11
|
paused?: object;
|
|
12
12
|
}
|
|
13
13
|
export declare function taskStatusWord(task: TaskState): StatusWord;
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AgentKind, ProviderAccounts } from '@adecore/agent-contracts';
|
|
2
|
-
import { type AccountEntry
|
|
2
|
+
import { type AccountEntry } from '../agents/accounts.js';
|
|
3
|
+
import { type AccountRule } from '../host/host.js';
|
|
3
4
|
import { type ProviderAccountsRow } from '../state/provider-accounts.js';
|
|
4
5
|
export interface AccountChoice {
|
|
5
6
|
accounts: ProviderAccounts;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { accountName, accountsOfKind, hasAccountChoice, offeredAccounts, projectDefault, projectOffered } from '../agents/accounts.js';
|
|
3
|
-
import
|
|
3
|
+
import '../host/host.js';
|
|
4
|
+
import { useHostAccountRule } from '../host/host-hooks.js';
|
|
4
5
|
import { useChatScope } from '../scope.js';
|
|
5
6
|
import { useProviderAccounts } from '../state/provider-accounts.js';
|
|
6
7
|
import { useProviders } from '../state/providers.js';
|
package/dist/chat/actions.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { type ChatActions, type ChatHost } from '../host.js';
|
|
1
|
+
import { type ChatActions, type ChatHost } from '../host/host.js';
|
|
2
2
|
import { type ChatScope } from '../scope.js';
|
|
3
|
-
import { type ChatTransport } from '../transport.js';
|
|
4
|
-
export declare function transportActions(transport: ChatTransport): ChatActions;
|
|
5
3
|
export declare function actionsOf(scope: ChatScope, host: Pick<ChatHost, 'actions'>): ChatActions;
|
|
6
4
|
export declare function useChatActions(): ChatActions;
|
package/dist/chat/actions.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import i18next from 'i18next';
|
|
3
|
-
import { useChatHost } from '../host.js';
|
|
3
|
+
import { useChatHost } from '../host/host.js';
|
|
4
4
|
import { useChatScope } from '../scope.js';
|
|
5
5
|
import { ChatTransportError } from '../transport.js';
|
|
6
6
|
/* Every action as the request a chat host answers, for an app that runs them through nothing of its own. */
|
|
7
|
-
|
|
7
|
+
function transportActions(transport) {
|
|
8
8
|
return {
|
|
9
9
|
clear: async (chatId, force) => {
|
|
10
10
|
await transport.request('chat.clear', {
|
package/dist/chat/attachments.js
CHANGED
|
@@ -17,7 +17,6 @@ export function fileBadge(name) {
|
|
|
17
17
|
export function formatBytes(bytes) {
|
|
18
18
|
return bytesOf(bytes, bytes < 1024 * 1024);
|
|
19
19
|
}
|
|
20
|
-
/* Which of the incoming files fit next to what the composer already holds, and why the rest do not. */
|
|
21
20
|
export function checkAttachmentLimits(current, incoming, currentBytes = 0) {
|
|
22
21
|
const accepted = [];
|
|
23
22
|
const rejected = [];
|
|
@@ -103,7 +102,6 @@ export async function readAttachments(files) {
|
|
|
103
102
|
data: await readAsBase64(file)
|
|
104
103
|
})));
|
|
105
104
|
}
|
|
106
|
-
/* Files the host already stored for a chat, back as uploads the composer can hold again. */
|
|
107
105
|
export async function readStoredAttachments(read, stored) {
|
|
108
106
|
const files = await Promise.all(stored.map(async attachment => new File([await read(attachment)], attachment.name, {
|
|
109
107
|
type: attachment.mime
|
package/dist/chat/bookmarks.d.ts
CHANGED
|
@@ -1,33 +1,4 @@
|
|
|
1
|
+
import type { Referable, Referables } from '../host/references.js';
|
|
1
2
|
import type { ReferenceToken } from './mentions.js';
|
|
2
|
-
export interface ProjectChat {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
}
|
|
6
|
-
export type ReferableKind = 'project' | 'canvas' | 'design' | 'chat' | 'terminal' | 'note' | 'text' | 'drawing' | 'diagram' | 'browser' | 'device' | 'file' | 'database';
|
|
7
|
-
export interface ReferenceStep {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
kind: ReferableKind;
|
|
11
|
-
}
|
|
12
|
-
export interface ReferenceSection {
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
current?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface Referable {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
kind: ReferableKind;
|
|
21
|
-
detail?: string;
|
|
22
|
-
group: 'canvas' | 'views';
|
|
23
|
-
trail?: readonly ReferenceStep[];
|
|
24
|
-
section?: ReferenceSection;
|
|
25
|
-
read?(): Promise<string>;
|
|
26
|
-
}
|
|
27
|
-
export interface Referables {
|
|
28
|
-
items: readonly Referable[];
|
|
29
|
-
chatsOnly: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare function referablesOfChats(chats: readonly ProjectChat[]): Referables;
|
|
32
3
|
export declare function referenceTokens(ids: readonly string[], items: readonly Referable[], spelled?: Readonly<Record<string, string>>): ReferenceToken[];
|
|
33
4
|
export declare function referenceSuggestions(referables: Referables, query: string, exclude: readonly string[], limit: number): Referable[];
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/* What a host without views offers: its chats, which every machine takes. */
|
|
2
|
-
export function referablesOfChats(chats) {
|
|
3
|
-
return {
|
|
4
|
-
items: chats.map(chat => ({
|
|
5
|
-
id: chat.id,
|
|
6
|
-
name: chat.title,
|
|
7
|
-
kind: 'chat',
|
|
8
|
-
group: 'views'
|
|
9
|
-
})),
|
|
10
|
-
chatsOnly: true
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
1
|
/*
|
|
14
2
|
* How each id is spelled in a text: under the name it was picked with where `spelled` knows it, else
|
|
15
3
|
* under the name it has now. An id with neither has no token.
|
package/dist/chat/drafts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { persistedJson } from '../persisted-json.js';
|
|
1
2
|
import { chatStorageKey, chatStorageLegacyKeys, createChatStore } from '../storage.js';
|
|
2
3
|
import { checkAttachmentLimits, uploadBytes } from './attachments.js';
|
|
3
|
-
import { persistedJson } from './persisted-json.js';
|
|
4
4
|
const storageKey = () => chatStorageKey('drafts');
|
|
5
5
|
export const EMPTY_DRAFT = {
|
|
6
6
|
text: '',
|
package/dist/chat/forks.js
CHANGED
|
@@ -2,7 +2,6 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { useChatScope } from '../scope.js';
|
|
3
3
|
import { useChats } from '../state/chats.js';
|
|
4
4
|
import { forkIdsAfter, forkedTurnIds } from './logic/fork.js';
|
|
5
|
-
/* The chats this client holds of one host, which is where the forks it knows of are. */
|
|
6
5
|
function* forkInfosOn(statuses, owns) {
|
|
7
6
|
for (const [key, state] of Object.entries(statuses)) {
|
|
8
7
|
if (state.info.forkOf !== undefined && owns(key)) {
|
|
@@ -64,7 +63,6 @@ export function useForkedTurns(chatId) {
|
|
|
64
63
|
}
|
|
65
64
|
return t2;
|
|
66
65
|
}
|
|
67
|
-
/* The forks that went on after this turn of this chat. */
|
|
68
66
|
export function useForkIdsAfter(chatId, turnId) {
|
|
69
67
|
const $ = _c(8);
|
|
70
68
|
const {
|
package/dist/chat/guards.js
CHANGED
|
@@ -35,7 +35,6 @@ export function promptGuard(text) {
|
|
|
35
35
|
* the config, or they end a session the chat node does not own.
|
|
36
36
|
*/
|
|
37
37
|
const TUI_ONLY = new Set(['bug', 'color', 'config', 'doctor', 'exit', 'heapdump', 'help', 'hooks', 'ide', 'install-github-app', 'keybindings', 'login', 'logout', 'migrate-installer', 'privacy-settings', 'quit', 'release-notes', 'reload-plugins', 'reload-skills', 'rename', 'resume', 'status', 'statusline', 'terminal-setup', 'theme', 'upgrade', 'vim']);
|
|
38
|
-
/* The commands of the CLI's list that mean something in a chat node. */
|
|
39
38
|
export function usableSlashCommands(names) {
|
|
40
39
|
return names.filter(name => !TUI_ONLY.has(name));
|
|
41
40
|
}
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
export { type AccountChoice, useAccountChoice,
|
|
2
|
-
export {
|
|
3
|
-
export { type ChatSendExtras, ChatClient } from '
|
|
4
|
-
export type { ProjectChat, Referable, ReferableKind, Referables } from '
|
|
1
|
+
export { type AccountChoice, useAccountChoice, useNewAccountChoice } from './account-choice.js';
|
|
2
|
+
export { actionsOf, useChatActions } from './actions.js';
|
|
3
|
+
export { type ChatSendExtras, ChatClient } from '../chat-client.js';
|
|
4
|
+
export type { ProjectChat, Referable, ReferableKind, Referables } from '../host/references.js';
|
|
5
5
|
export { REFERENCE_ICONS } from './ui/reference-icons.js';
|
|
6
|
-
export { sendFromComposer
|
|
6
|
+
export { sendFromComposer } from './composer-send.js';
|
|
7
7
|
export { stepEffortFromComposer } from './composer-effort.js';
|
|
8
|
-
export
|
|
9
|
-
export { EMPTY_DRAFT, useDrafts, readDraft, writeDraft, offerDraft, type ChatDraft } from './drafts.js';
|
|
8
|
+
export { EMPTY_DRAFT, useDrafts, readDraft, writeDraft, offerDraft } from './drafts.js';
|
|
10
9
|
export { stripAnsi } from './logic/ansi.js';
|
|
11
|
-
export {
|
|
12
|
-
export { matchCommandLook, lookRunOf, sentMessageOf
|
|
13
|
-
export {
|
|
10
|
+
export { canForkWith, forkRefusal, summaryRefusal, lastSettledTurn, forkPointOf, forkPointLabel, type ForkShape, forkShapes, type ForkCliChoice, forkPayload, branchRefusal } from './logic/fork.js';
|
|
11
|
+
export { matchCommandLook, lookRunOf, sentMessageOf } from './logic/command-looks.js';
|
|
12
|
+
export { type Look } from '../host/timeline-row.js';
|
|
13
|
+
export { mcpCallOf } from './logic/tool-looks.js';
|
|
14
14
|
export { handbackReportOf } from './logic/handback.js';
|
|
15
|
-
export { limitView
|
|
16
|
-
export
|
|
17
|
-
export { type
|
|
18
|
-
export { EMPTY_TARGET, readTimelineTarget, type TimelineTarget } from './logic/timeline-target.js';
|
|
19
|
-
export { type TimelineRow, summarizeGroup, deriveTimelineRows, type SubagentBranch, type BaseMoved } from './logic/timeline.js';
|
|
15
|
+
export { limitView } from './logic/limit.js';
|
|
16
|
+
export { summarizeGroup, deriveTimelineRows } from './logic/timeline.js';
|
|
17
|
+
export { type TimelineRow, type SubagentBranch } from '../host/timeline-row.js';
|
|
20
18
|
export { toolSummary, type FileChange } from './logic/tools.js';
|
|
21
|
-
export { workflowPhases, workflowCounts, workflowAgentState, workflowAgentTime, workflowAgentPreview, workflowDescription, workflowPhaseState, workflowPhaseTime, liveWorkflowPhase, type WorkflowPhaseView, type WorkflowAgentView, type WorkflowAgentState, type WorkflowAgentPreview, type WorkflowCounts, type
|
|
22
|
-
export { MENTION_DRAG_TYPE, LEGACY_MENTION_DRAG_TYPE, carriesMentions, droppedMentions, writeMentionDrag, chipText
|
|
19
|
+
export { workflowPhases, workflowCounts, workflowAgentState, workflowAgentTime, workflowAgentPreview, workflowDescription, workflowPhaseState, workflowPhaseTime, liveWorkflowPhase, type WorkflowPhaseView, type WorkflowAgentView, type WorkflowAgentState, type WorkflowAgentPreview, type WorkflowCounts, type WorkflowPhaseStateKind } from './logic/workflow.js';
|
|
20
|
+
export { MENTION_DRAG_TYPE, LEGACY_MENTION_DRAG_TYPE, carriesMentions, droppedMentions, writeMentionDrag, chipText } from './mentions.js';
|
|
23
21
|
export { defaultProvider, selectionFor, startingSelection, accountFor, chatPreferencesPayload, useChatPreferences, readChatPreferences, CHAT_PREFERENCES_KEY, reloadChatPreferences, rememberChatPreferences, rememberReadingWidth, rememberSendKey, rememberChatSelection, type ChatPreferences } from './preferences.js';
|
|
24
|
-
export
|
|
25
|
-
export {
|
|
26
|
-
export { recentChatMessages, recentSubagentMessages, type RecentChatMessage, type RecentChatMessages } from './recent-messages.js';
|
|
22
|
+
export { CHAT_READING_WIDTHS, readingWidthLabel, readingWidthHint } from './reading-width.js';
|
|
23
|
+
export { recentChatMessages, recentSubagentMessages } from './recent-messages.js';
|
|
27
24
|
export { RUNTIME_MODES, runtimeModeLabel, runtimeModeHint } from './runtime-modes.js';
|
|
28
|
-
export { CHAT_SEND_KEYS, SEND_AND_NEW_SHORTCUT, sendKeyLabel, sendKeyHint
|
|
29
|
-
export type { StashedAttachment, StashedPrompt, StashedQuote } from './stash.js';
|
|
25
|
+
export { CHAT_SEND_KEYS, SEND_AND_NEW_SHORTCUT, sendKeyLabel, sendKeyHint } from './send-key.js';
|
|
30
26
|
export { subagentTitle, summaryWordOf, stopOf, type SubagentStop } from './subagent-list.js';
|
|
31
27
|
export { waitingOnOf, waitingOnLabel, type WaitingChild, type WaitingOn, type WaitingOnInput } from './waiting-on.js';
|
|
32
28
|
export { useSubagentSupport } from './subagent-support.js';
|
|
33
29
|
export { crumbOf, openFromMain, composerWrites, canOpenSubagent, useSubagentView, useSubagentTrail, useSubagentItem, type SubagentStep, type SubagentTrail } from './subagent-view.js';
|
|
34
|
-
export { stepTimelineMessage, jumpToTimelineItem, type TurnTarget, registerTurnJumper, jumpToTimelineTurn
|
|
35
|
-
export { type StatusWord, statusLookOf, taskStatusWord
|
|
30
|
+
export { stepTimelineMessage, jumpToTimelineItem, type TurnTarget, registerTurnJumper, jumpToTimelineTurn } from './timeline-scroll.js';
|
|
31
|
+
export { type StatusWord, statusLookOf, taskStatusWord } from '../agents/status-look.js';
|
|
36
32
|
export { ChatPromptFeed } from './pending-prompts.js';
|
package/dist/chat/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// Public API: exports.test.ts snapshots this list, so a name added or dropped here is an API change.
|
|
2
2
|
export { useAccountChoice, useNewAccountChoice } from './account-choice.js';
|
|
3
|
-
export {
|
|
4
|
-
export { ChatClient } from '
|
|
3
|
+
export { actionsOf, useChatActions } from './actions.js';
|
|
4
|
+
export { ChatClient } from '../chat-client.js';
|
|
5
5
|
export { REFERENCE_ICONS } from './ui/reference-icons.js';
|
|
6
6
|
export { sendFromComposer } from './composer-send.js';
|
|
7
7
|
export { stepEffortFromComposer } from './composer-effort.js';
|
|
8
8
|
export { EMPTY_DRAFT, useDrafts, readDraft, writeDraft, offerDraft } from './drafts.js';
|
|
9
9
|
export { stripAnsi } from './logic/ansi.js';
|
|
10
|
-
export {
|
|
10
|
+
export { canForkWith, forkRefusal, summaryRefusal, lastSettledTurn, forkPointOf, forkPointLabel, forkShapes, forkPayload, branchRefusal } from './logic/fork.js';
|
|
11
11
|
export { matchCommandLook, lookRunOf, sentMessageOf } from './logic/command-looks.js';
|
|
12
|
-
export {
|
|
12
|
+
export {} from '../host/timeline-row.js';
|
|
13
|
+
export { mcpCallOf } from './logic/tool-looks.js';
|
|
13
14
|
export { handbackReportOf } from './logic/handback.js';
|
|
14
15
|
export { limitView } from './logic/limit.js';
|
|
15
|
-
export { withTimedRows, timedRowsOf } from './logic/thread-cards.js';
|
|
16
|
-
export { EMPTY_TARGET, readTimelineTarget } from './logic/timeline-target.js';
|
|
17
16
|
export { summarizeGroup, deriveTimelineRows } from './logic/timeline.js';
|
|
17
|
+
export {} from '../host/timeline-row.js';
|
|
18
18
|
export { toolSummary } from './logic/tools.js';
|
|
19
19
|
export { workflowPhases, workflowCounts, workflowAgentState, workflowAgentTime, workflowAgentPreview, workflowDescription, workflowPhaseState, workflowPhaseTime, liveWorkflowPhase } from './logic/workflow.js';
|
|
20
20
|
export { MENTION_DRAG_TYPE, LEGACY_MENTION_DRAG_TYPE, carriesMentions, droppedMentions, writeMentionDrag, chipText } from './mentions.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
|
-
|
|
2
|
+
interface AnsiToken {
|
|
3
3
|
content: string;
|
|
4
4
|
style: CSSProperties;
|
|
5
5
|
}
|
|
@@ -11,3 +11,4 @@ export declare function parseAnsi(text: string, options?: {
|
|
|
11
11
|
tokens: AnsiToken[];
|
|
12
12
|
omitted: number;
|
|
13
13
|
};
|
|
14
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChatBookmark, ChatItem } from '@adecore/agent-contracts';
|
|
2
|
-
import type { TimelineRow } from '
|
|
2
|
+
import type { TimelineRow } from '../../host/timeline-row.js';
|
|
3
3
|
export declare function bookmarkLabel(bookmark: ChatBookmark): string;
|
|
4
4
|
export declare function bookmarksInThreadOrder(bookmarks: readonly ChatBookmark[], order: readonly string[]): ChatBookmark[];
|
|
5
5
|
export declare function bookmarkRows(rows: readonly TimelineRow[], bookmarks: readonly ChatBookmark[], items: Readonly<Record<string, ChatItem>>): Map<string, ChatBookmark>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ChatToolItem } from '@adecore/agent-contracts';
|
|
2
|
-
import type { CommandLook, CommandLookMatch, CommandLookSent, ToolLook } from '../../host.js';
|
|
2
|
+
import type { CommandLook, CommandLookMatch, CommandLookSent, ToolLook } from '../../host/host.js';
|
|
3
|
+
import type { Look } from '../../host/timeline-row.js';
|
|
3
4
|
import { type EmbeddedCode } from './embedded-code.js';
|
|
4
5
|
export interface CommandLookWord {
|
|
5
6
|
readonly start: number;
|
|
@@ -7,7 +8,6 @@ export interface CommandLookWord {
|
|
|
7
8
|
readonly text: string;
|
|
8
9
|
readonly option: string | null;
|
|
9
10
|
}
|
|
10
|
-
export type Look = CommandLook | ToolLook;
|
|
11
11
|
export interface LookRun {
|
|
12
12
|
readonly look: Look;
|
|
13
13
|
readonly label: string;
|
|
@@ -23,7 +23,7 @@ export interface LookRun {
|
|
|
23
23
|
readonly more: number;
|
|
24
24
|
readonly heredoc: boolean;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
interface CommandLookRun extends LookRun {
|
|
27
27
|
readonly look: CommandLook;
|
|
28
28
|
readonly match: CommandLookMatch;
|
|
29
29
|
readonly args: readonly string[];
|
|
@@ -34,3 +34,4 @@ export declare function matchCommandLook(command: string, looks: readonly Comman
|
|
|
34
34
|
export declare function lookRunOf(tool: ChatToolItem, commandLooks: readonly CommandLook[] | undefined, toolLooks: readonly ToolLook[] | undefined): LookRun | null;
|
|
35
35
|
export declare function lookKey(look: Look): string;
|
|
36
36
|
export declare function sentMessageOf(tool: ChatToolItem, looks: readonly CommandLook[] | undefined, toolLooks?: readonly ToolLook[]): CommandLookSent | null;
|
|
37
|
+
export {};
|
|
@@ -6,7 +6,6 @@ const FOLD_LENGTH = 40;
|
|
|
6
6
|
// Rows redraw often and a thread holds many commands, so each is read once per set of looks.
|
|
7
7
|
const CACHE_LIMIT = 300;
|
|
8
8
|
const caches = new WeakMap();
|
|
9
|
-
/* The look of a simple command and what it says about it, or null when no look knows it. */
|
|
10
9
|
function lookOf(command, looks) {
|
|
11
10
|
const program = command.program;
|
|
12
11
|
if (program === null) {
|
|
@@ -109,7 +108,6 @@ function detailOf(source, command, match) {
|
|
|
109
108
|
words
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
|
-
/* Whether the shell would fill in a part of this source: a `$` or backtick outside single quotes and not escaped. */
|
|
113
111
|
function expandsInShell(source) {
|
|
114
112
|
let quote = null;
|
|
115
113
|
for (let i = 0; i < source.length; i++) {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { ChatContextBreakdown, ChatUsage, ModelOptionDescriptor } from '@adecore/agent-contracts';
|
|
2
2
|
export declare const CONTEXT_OPTION = "contextWindow";
|
|
3
3
|
export type ContextPart = keyof ChatContextBreakdown;
|
|
4
|
-
|
|
5
|
-
export interface ContextSegment {
|
|
4
|
+
interface ContextSegment {
|
|
6
5
|
part: ContextPart;
|
|
7
6
|
tokens: number;
|
|
8
7
|
fraction: number;
|
|
@@ -10,3 +9,4 @@ export interface ContextSegment {
|
|
|
10
9
|
export declare function contextFraction(usage: ChatUsage): number;
|
|
11
10
|
export declare function contextSegments(usage: ChatUsage): ContextSegment[] | null;
|
|
12
11
|
export declare function orderOptions(options: readonly ModelOptionDescriptor[]): ModelOptionDescriptor[];
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const CONTEXT_OPTION = 'contextWindow';
|
|
2
|
-
|
|
2
|
+
const CONTEXT_PARTS = ['toolOutput', 'filesRead', 'conversation', 'system'];
|
|
3
3
|
export function contextFraction(usage) {
|
|
4
4
|
return usage.contextWindow ? Math.min(1, usage.contextTokens / usage.contextWindow) : 0;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ModelInfo, ModelOptionChoice, ModelSelection } from '@adecore/agent-contracts';
|
|
2
2
|
export declare const EFFORT_OPTION = "effort";
|
|
3
3
|
export type EffortStep = 'up' | 'down';
|
|
4
|
-
|
|
4
|
+
type EffortStepResult = {
|
|
5
5
|
kind: 'stepped';
|
|
6
6
|
selection: ModelSelection;
|
|
7
7
|
choice: ModelOptionChoice;
|
|
@@ -12,3 +12,4 @@ export type EffortStepResult = {
|
|
|
12
12
|
kind: 'none';
|
|
13
13
|
};
|
|
14
14
|
export declare function stepEffort(model: ModelInfo | undefined, selection: ModelSelection, step: EffortStep): EffortStepResult;
|
|
15
|
+
export {};
|
|
@@ -5,7 +5,7 @@ export interface EmbeddedCode {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const SHELL_LANGUAGE = "shellscript";
|
|
7
7
|
export declare const EMBEDDED_CODE_LIMIT = 20000;
|
|
8
|
-
|
|
8
|
+
interface ShellSpan {
|
|
9
9
|
readonly start: number;
|
|
10
10
|
readonly end: number;
|
|
11
11
|
}
|
|
@@ -13,11 +13,11 @@ export interface ShellWord extends ShellSpan {
|
|
|
13
13
|
readonly text: string;
|
|
14
14
|
readonly body: ShellSpan | null;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
interface ShellRedirect extends ShellSpan {
|
|
17
17
|
readonly op: string;
|
|
18
18
|
readonly target: ShellWord;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
interface ShellHeredoc extends ShellSpan {
|
|
21
21
|
readonly body: ShellSpan;
|
|
22
22
|
}
|
|
23
23
|
export interface ShellSimpleCommand {
|
|
@@ -31,3 +31,4 @@ export interface ShellSimpleCommand {
|
|
|
31
31
|
}
|
|
32
32
|
export declare function shellCommands(source: string): ShellSimpleCommand[];
|
|
33
33
|
export declare function embeddedCode(command: string): EmbeddedCode[];
|
|
34
|
+
export {};
|
|
@@ -87,7 +87,6 @@ function programOf(word) {
|
|
|
87
87
|
const name = word.slice(word.lastIndexOf('/') + 1);
|
|
88
88
|
return /^python\d*(\.\d+)?$/.test(name) ? 'python' : name;
|
|
89
89
|
}
|
|
90
|
-
/* Splits `source[from, to)` into simple commands the way a shell would, enough to find the code in them. */
|
|
91
90
|
function parseCommands(source, from, to) {
|
|
92
91
|
const commands = [];
|
|
93
92
|
let current = {
|