@adecore/agents-react 0.53.2 → 0.54.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/AgentIcon.js +1 -1
- package/dist/agents/AgentModelLabel.js +1 -1
- package/dist/agents/accounts.js +1 -1
- package/dist/chat/attachments.js +1 -1
- package/dist/chat/forks.js +1 -1
- package/dist/chat/logic/limit.js +1 -1
- package/dist/chat/logic/scrubber.js +1 -1
- package/dist/chat/logic/selection-switch.d.ts +6 -0
- package/dist/chat/logic/selection-switch.js +42 -0
- package/dist/chat/logic/timeline-target.d.ts +1 -1
- package/dist/chat/logic/timeline.d.ts +6 -1
- package/dist/chat/logic/timeline.js +16 -2
- package/dist/chat/logic/tool-looks.js +1 -1
- package/dist/chat/logic/tools.js +1 -1
- package/dist/chat/logic/workflow.js +1 -1
- package/dist/chat/preferences.js +1 -1
- package/dist/chat/runtime-modes.js +1 -1
- package/dist/chat/send-key.js +1 -1
- package/dist/chat/stash.js +2 -2
- package/dist/chat/subagent-list.js +1 -1
- package/dist/chat/ui/AccountPill.js +3 -3
- package/dist/chat/ui/BookmarkMarker.js +6 -6
- package/dist/chat/ui/BookmarkSubmenu.js +5 -5
- package/dist/chat/ui/ChatActivity.js +15 -14
- package/dist/chat/ui/CodeBlock.js +9 -7
- package/dist/chat/ui/Composer.js +13 -13
- package/dist/chat/ui/ComposerInput.d.ts +1 -1
- package/dist/chat/ui/ComposerInput.js +35 -18
- package/dist/chat/ui/DiffPool.js +1 -1
- package/dist/chat/ui/EditDiff.js +2 -2
- package/dist/chat/ui/GoalDock.js +5 -5
- package/dist/chat/ui/ImageView.js +4 -4
- package/dist/chat/ui/LimitState.js +12 -12
- package/dist/chat/ui/Markdown.d.ts +1 -1
- package/dist/chat/ui/Markdown.js +11 -10
- package/dist/chat/ui/MermaidBlock.js +7 -6
- package/dist/chat/ui/MessageActions.js +7 -7
- package/dist/chat/ui/ModelMarks.js +2 -2
- package/dist/chat/ui/Pickers.d.ts +1 -1
- package/dist/chat/ui/Pickers.js +32 -27
- package/dist/chat/ui/PromptComposer.d.ts +1 -1
- package/dist/chat/ui/PromptComposer.js +5 -5
- package/dist/chat/ui/PromptEditor.js +3 -3
- package/dist/chat/ui/QuoteButton.js +2 -2
- package/dist/chat/ui/ReferenceChip.js +3 -3
- package/dist/chat/ui/ReferenceTrail.js +2 -2
- package/dist/chat/ui/ResumeCompactionDock.js +3 -3
- package/dist/chat/ui/RunSettings.js +11 -11
- package/dist/chat/ui/Scrubber.js +4 -4
- package/dist/chat/ui/SessionLine.js +2 -2
- package/dist/chat/ui/ShellCommand.d.ts +1 -1
- package/dist/chat/ui/ShellCommand.js +2 -2
- package/dist/chat/ui/SubagentControls.js +3 -3
- package/dist/chat/ui/SubagentInfo.js +5 -5
- package/dist/chat/ui/SubagentStopButton.js +2 -2
- package/dist/chat/ui/SubagentTimeline.js +18 -16
- package/dist/chat/ui/Timeline.js +231 -145
- package/dist/chat/ui/TimelineMenu.js +7 -7
- package/dist/chat/ui/UnifiedDiff.js +2 -2
- package/dist/chat/ui/VisualDialogs.js +1 -1
- package/dist/chat/ui/VisualFrame.js +4 -4
- package/dist/chat/ui/WorkflowAgentLine.d.ts +1 -1
- package/dist/chat/ui/WorkflowAgentLine.js +3 -3
- package/dist/chat/ui/chip-clipboard.d.ts +1 -1
- package/dist/chat/ui/composer/ComposerControls.d.ts +1 -1
- package/dist/chat/ui/composer/ComposerControls.js +4 -4
- package/dist/chat/ui/composer/ComposerMenu.js +5 -4
- package/dist/chat/ui/composer/DraftParts.js +2 -2
- package/dist/chat/ui/composer/QueuedMessages.js +2 -2
- package/dist/chat/ui/composer/chip-paste.d.ts +1 -1
- package/dist/chat/ui/composer/chips.d.ts +1 -1
- package/dist/chat/ui/composer/chips.js +2 -2
- package/dist/chat/ui/composer/key-handler.js +1 -1
- package/dist/chat/ui/composer/placeholder.js +1 -1
- package/dist/chat/ui/composer/use-composer-menus.d.ts +1 -1
- package/dist/chat/ui/composer/use-composer-menus.js +1 -1
- package/dist/chat/ui/composer/use-composer-submit.d.ts +1 -1
- package/dist/chat/ui/composer/use-draft-files.d.ts +2 -2
- package/dist/chat/ui/composer/use-draft-files.js +1 -1
- package/dist/chat/ui/composer/use-effort-stepper.js +1 -1
- package/dist/chat/ui/composer/use-prompt-menus.d.ts +2 -2
- package/dist/chat/ui/composer/use-prompt-menus.js +1 -1
- package/dist/chat/ui/diff/ApprovalReview.js +2 -2
- package/dist/chat/ui/diff/DiffOmitted.js +1 -1
- package/dist/chat/ui/diff/DiffStack.js +2 -2
- package/dist/chat/ui/diff/EditorEditDiff.d.ts +1 -1
- package/dist/chat/ui/diff/EditorEditDiff.js +5 -5
- package/dist/chat/ui/diff/EditorPatchDiff.d.ts +1 -1
- package/dist/chat/ui/diff/EditorPatchDiff.js +1 -1
- package/dist/chat/ui/diff/LegacyEditDiff.js +47 -31
- package/dist/chat/ui/diff/LegacyUnifiedDiff.js +93 -69
- package/dist/chat/ui/diff/RawDiff.js +54 -35
- package/dist/chat/ui/diff/syntax-runtime.d.ts +1 -1
- package/dist/chat/ui/highlighter.d.ts +1 -1
- package/dist/chat/ui/highlighter.js +1 -1
- package/dist/chat/ui/icons.js +1 -1
- package/dist/chat/ui/intelligent-ui/UiBlockFrame.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/UiBlockFrame.js +4 -4
- package/dist/chat/ui/intelligent-ui/UiFallbackPart.js +2 -2
- package/dist/chat/ui/intelligent-ui/UiReply.d.ts +2 -2
- package/dist/chat/ui/intelligent-ui/UiReply.js +8 -8
- package/dist/chat/ui/intelligent-ui/node-text.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 +28 -15
- package/dist/chat/ui/intelligent-ui/renderers/choices.js +4 -4
- package/dist/chat/ui/intelligent-ui/renderers/content.js +6 -6
- package/dist/chat/ui/intelligent-ui/renderers/data.js +104 -87
- package/dist/chat/ui/intelligent-ui/renderers/inputs.js +3 -3
- package/dist/chat/ui/intelligent-ui/renderers/links.js +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/map-view.js +4 -4
- package/dist/chat/ui/intelligent-ui/renderers/map.js +3 -3
- package/dist/chat/ui/intelligent-ui/renderers/structure.js +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/text.js +5 -5
- package/dist/chat/ui/intelligent-ui/tones.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/use-ui-links.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/use-ui-links.js +2 -2
- package/dist/chat/ui/intelligent-ui/use-ui-queries.js +1 -1
- package/dist/chat/ui/reference-icons.d.ts +1 -1
- package/dist/chat/ui/reference-icons.js +2 -2
- package/dist/chat/ui/reply-context.d.ts +1 -1
- package/dist/chat/ui/rows/ForksRow.js +3 -3
- package/dist/chat/ui/rows/GeneratedImageRow.js +5 -5
- package/dist/chat/ui/rows/MessageRows.d.ts +6 -1
- package/dist/chat/ui/rows/MessageRows.js +151 -22
- package/dist/chat/ui/rows/Rows.js +39 -21
- package/dist/chat/ui/rows/SubagentRow.js +16 -16
- package/dist/chat/ui/rows/TaskRow.js +3 -3
- package/dist/chat/ui/rows/VisualRow.js +2 -2
- package/dist/chat/ui/rows/WorkRows.d.ts +2 -2
- package/dist/chat/ui/rows/WorkRows.js +37 -25
- package/dist/chat/ui/rows/WorkflowRow.js +8 -8
- package/dist/chat/ui/use-diff-source-tokens.js +1 -1
- package/dist/chat/ui/visual-theme.d.ts +1 -1
- package/dist/chat/ui/visual-theme.js +2 -2
- package/dist/chat/workflow-list.js +1 -1
- package/dist/host.d.ts +4 -4
- package/dist/host.js +1 -1
- package/dist/lazy.js +1 -1
- package/dist/locales/en/agent-chat.d.ts +4 -0
- package/dist/locales/en/agent-chat.js +4 -0
- package/dist/locales/nl/agent-chat.d.ts +4 -0
- package/dist/locales/nl/agent-chat.js +4 -0
- package/dist/port-transport.js +1 -1
- package/dist/prompts/logic/subjects.d.ts +1 -1
- package/dist/prompts/ui/ApprovalBody.js +16 -7
- package/dist/prompts/ui/PromptActions.js +2 -2
- package/dist/prompts/ui/PromptCard.js +5 -4
- package/dist/prompts/ui/PromptView.js +1 -1
- package/dist/prompts/ui/QuestionBody.js +4 -4
- package/dist/providers/AccountDetail.js +4 -4
- package/dist/providers/AccountOrderList.js +2 -2
- package/dist/providers/AccountVariables.js +3 -3
- package/dist/providers/AddAccountForm.js +6 -6
- package/dist/providers/CliDetail.js +8 -8
- package/dist/providers/InstallPage.js +3 -3
- package/dist/providers/ProviderList.js +2 -2
- package/dist/providers/ProvidersPane.d.ts +1 -1
- package/dist/providers/ProvidersPane.js +5 -5
- package/dist/providers/install-steps.d.ts +1 -1
- package/dist/settings/sections.d.ts +2 -2
- package/dist/state/chats.js +1 -1
- package/dist/state/usage.js +2 -2
- package/dist/theme.css +4 -4
- package/dist/transport.d.ts +1 -1
- package/dist/usage/LimitsList.js +4 -4
- package/dist/usage/UsageBreakdown.js +5 -5
- package/dist/usage/UsageChart.js +1 -1
- package/dist/usage/UsageDialog.js +1 -1
- package/dist/usage/UsageLimits.js +6 -6
- package/dist/usage/UsageLimitsCard.js +2 -2
- package/dist/usage/UsagePage.js +200 -189
- package/dist/usage/UsagePane.js +2 -2
- package/dist/usage/UsageSummary.js +1 -1
- package/dist/usage/UsageTiles.js +1 -1
- package/dist/usage/limit-groups.js +2 -2
- package/dist/usage/summary.js +1 -1
- package/package.json +9 -8
- package/src/agents/AgentIcon.tsx +1 -1
- package/src/agents/AgentModelLabel.tsx +2 -2
- package/src/agents/ProviderLogo.tsx +1 -1
- package/src/agents/accounts.ts +1 -1
- package/src/agents/option-words.ts +1 -1
- package/src/chat/attachments.ts +1 -1
- package/src/chat/bookmarks.ts +1 -1
- package/src/chat/drafts.ts +1 -1
- package/src/chat/forks.ts +1 -1
- package/src/chat/logic/fork.ts +1 -1
- package/src/chat/logic/limit.ts +1 -1
- package/src/chat/logic/scrubber.ts +1 -1
- package/src/chat/logic/selection-switch.ts +47 -0
- package/src/chat/logic/timeline-copy.ts +1 -1
- package/src/chat/logic/timeline-target.ts +1 -1
- package/src/chat/logic/timeline.ts +28 -4
- package/src/chat/logic/tool-looks.ts +1 -1
- package/src/chat/logic/tools.ts +1 -1
- package/src/chat/logic/workflow.ts +1 -1
- package/src/chat/pending-prompts.ts +1 -1
- package/src/chat/preferences.ts +1 -1
- package/src/chat/reading-width.ts +1 -1
- package/src/chat/runtime-modes.ts +1 -1
- package/src/chat/send-key.ts +1 -1
- package/src/chat/stash.ts +2 -2
- package/src/chat/subagent-conversation.ts +1 -1
- package/src/chat/subagent-list.ts +1 -1
- package/src/chat/subagent-view.ts +1 -1
- package/src/chat/thumbnails.ts +1 -1
- package/src/chat/ui/AccountPill.tsx +4 -4
- package/src/chat/ui/BookmarkMarker.tsx +6 -6
- package/src/chat/ui/BookmarkSubmenu.tsx +5 -5
- package/src/chat/ui/ChatActivity.tsx +15 -15
- package/src/chat/ui/CodeBlock.tsx +10 -8
- package/src/chat/ui/Composer.tsx +13 -13
- package/src/chat/ui/ComposerInput.tsx +10 -2
- package/src/chat/ui/DiffPool.tsx +1 -1
- package/src/chat/ui/EditDiff.tsx +3 -4
- package/src/chat/ui/GoalDock.tsx +6 -6
- package/src/chat/ui/ImageView.tsx +4 -4
- package/src/chat/ui/LimitState.tsx +13 -13
- package/src/chat/ui/Markdown.tsx +12 -12
- package/src/chat/ui/MermaidBlock.tsx +6 -6
- package/src/chat/ui/MessageActions.tsx +7 -7
- package/src/chat/ui/ModelMarks.tsx +2 -2
- package/src/chat/ui/Pickers.tsx +10 -10
- package/src/chat/ui/PromptComposer.tsx +6 -6
- package/src/chat/ui/PromptEditor.tsx +4 -4
- package/src/chat/ui/QuoteButton.tsx +2 -2
- package/src/chat/ui/ReferenceChip.tsx +3 -3
- package/src/chat/ui/ReferenceTrail.tsx +2 -2
- package/src/chat/ui/ResumeCompactionDock.tsx +3 -3
- package/src/chat/ui/RunSettings.tsx +13 -13
- package/src/chat/ui/Scrubber.tsx +4 -4
- package/src/chat/ui/SessionLine.tsx +2 -2
- package/src/chat/ui/ShellCommand.tsx +2 -2
- package/src/chat/ui/SubagentControls.tsx +3 -3
- package/src/chat/ui/SubagentInfo.tsx +5 -5
- package/src/chat/ui/SubagentStopButton.tsx +3 -3
- package/src/chat/ui/SubagentTimeline.tsx +20 -17
- package/src/chat/ui/Timeline.tsx +232 -143
- package/src/chat/ui/TimelineMenu.tsx +7 -7
- package/src/chat/ui/UnifiedDiff.tsx +3 -3
- package/src/chat/ui/VisualDialogs.tsx +2 -2
- package/src/chat/ui/VisualFrame.tsx +4 -4
- package/src/chat/ui/WorkflowAgentLine.tsx +4 -4
- package/src/chat/ui/chip-clipboard.ts +1 -1
- package/src/chat/ui/composer/ComposerControls.tsx +4 -4
- package/src/chat/ui/composer/ComposerMenu.tsx +6 -6
- package/src/chat/ui/composer/DraftParts.tsx +2 -2
- package/src/chat/ui/composer/QueuedMessages.tsx +2 -2
- package/src/chat/ui/composer/chip-paste.ts +1 -1
- package/src/chat/ui/composer/chips.ts +2 -2
- package/src/chat/ui/composer/key-handler.ts +2 -2
- package/src/chat/ui/composer/placeholder.ts +1 -1
- package/src/chat/ui/composer/use-chat-controls.ts +1 -1
- package/src/chat/ui/composer/use-compaction-offer.ts +1 -1
- 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-draft-files.ts +3 -3
- package/src/chat/ui/composer/use-effort-stepper.ts +2 -2
- package/src/chat/ui/composer/use-pending-requests.ts +1 -1
- package/src/chat/ui/composer/use-prompt-menus.ts +3 -3
- package/src/chat/ui/composer/use-take-back.ts +1 -1
- package/src/chat/ui/diff/ApprovalReview.tsx +3 -3
- package/src/chat/ui/diff/DiffOmitted.tsx +1 -1
- package/src/chat/ui/diff/DiffStack.tsx +2 -2
- package/src/chat/ui/diff/EditorEditDiff.tsx +5 -5
- package/src/chat/ui/diff/EditorPatchDiff.tsx +1 -1
- package/src/chat/ui/diff/LegacyDiffPool.tsx +1 -1
- package/src/chat/ui/diff/LegacyEditDiff.tsx +18 -9
- package/src/chat/ui/diff/LegacyUnifiedDiff.tsx +24 -13
- package/src/chat/ui/diff/RawDiff.tsx +8 -5
- package/src/chat/ui/diff/syntax-runtime.ts +1 -1
- package/src/chat/ui/highlighter.ts +1 -1
- package/src/chat/ui/icons.tsx +2 -2
- package/src/chat/ui/intelligent-ui/UiBlockFrame.tsx +5 -5
- package/src/chat/ui/intelligent-ui/UiFallbackPart.tsx +2 -2
- package/src/chat/ui/intelligent-ui/UiReply.tsx +18 -18
- package/src/chat/ui/intelligent-ui/node-text.ts +1 -1
- package/src/chat/ui/intelligent-ui/render-context.ts +1 -1
- package/src/chat/ui/intelligent-ui/renderers/chart.tsx +15 -7
- package/src/chat/ui/intelligent-ui/renderers/choices.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/content.tsx +7 -7
- package/src/chat/ui/intelligent-ui/renderers/data.tsx +8 -7
- package/src/chat/ui/intelligent-ui/renderers/inputs.tsx +3 -3
- package/src/chat/ui/intelligent-ui/renderers/links.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/map-view.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/map.tsx +5 -5
- package/src/chat/ui/intelligent-ui/renderers/structure.tsx +3 -3
- package/src/chat/ui/intelligent-ui/renderers/text.tsx +5 -5
- package/src/chat/ui/intelligent-ui/tones.ts +1 -1
- package/src/chat/ui/intelligent-ui/use-ui-links.ts +2 -2
- package/src/chat/ui/intelligent-ui/use-ui-queries.ts +1 -1
- package/src/chat/ui/reference-icons.ts +2 -2
- package/src/chat/ui/reply-context.ts +1 -1
- package/src/chat/ui/rows/ForksRow.tsx +3 -3
- package/src/chat/ui/rows/GeneratedImageRow.tsx +7 -7
- package/src/chat/ui/rows/MessageRows.tsx +57 -33
- package/src/chat/ui/rows/RowContainer.tsx +1 -1
- package/src/chat/ui/rows/Rows.tsx +7 -4
- package/src/chat/ui/rows/SubagentRow.tsx +16 -16
- package/src/chat/ui/rows/TaskRow.tsx +4 -4
- package/src/chat/ui/rows/VisualRow.tsx +2 -2
- package/src/chat/ui/rows/WorkRows.tsx +44 -32
- package/src/chat/ui/rows/WorkflowRow.tsx +9 -9
- package/src/chat/ui/rows/row-rhythm.ts +1 -1
- package/src/chat/ui/use-diff-source-tokens.ts +1 -1
- package/src/chat/ui/visual-theme.ts +2 -2
- package/src/chat/workflow-list.ts +1 -1
- package/src/host.ts +6 -6
- package/src/lazy.tsx +1 -1
- package/src/locales/en/agent-chat.ts +4 -0
- package/src/locales/nl/agent-chat.ts +4 -0
- package/src/port-transport.ts +1 -1
- package/src/prompts/logic/subjects.ts +1 -1
- package/src/prompts/ui/ApprovalBody.tsx +19 -9
- package/src/prompts/ui/PromptActions.tsx +2 -2
- package/src/prompts/ui/PromptCard.tsx +4 -4
- package/src/prompts/ui/PromptView.tsx +1 -1
- package/src/prompts/ui/QuestionBody.tsx +5 -5
- package/src/providers/AccountDetail.tsx +5 -5
- package/src/providers/AccountOrderList.tsx +2 -2
- package/src/providers/AccountVariables.tsx +4 -4
- package/src/providers/AddAccountForm.tsx +7 -7
- package/src/providers/CliDetail.tsx +9 -9
- package/src/providers/InstallPage.tsx +4 -4
- package/src/providers/ProviderList.tsx +4 -4
- package/src/providers/ProvidersPane.tsx +7 -7
- package/src/providers/account-actions.ts +1 -1
- package/src/providers/install-steps.ts +1 -1
- package/src/providers/parts.tsx +1 -1
- package/src/providers/provider-abilities.ts +1 -1
- package/src/providers/provider-groups.ts +1 -1
- package/src/providers/variables.ts +1 -1
- package/src/settings/sections.ts +2 -2
- package/src/state/chats.ts +2 -2
- package/src/state/provider-accounts.ts +1 -1
- package/src/state/providers.ts +1 -1
- package/src/state/usage.ts +2 -2
- package/src/theme.css +4 -4
- package/src/transport.ts +1 -1
- package/src/usage/LimitsList.tsx +5 -5
- package/src/usage/UsageBreakdown.tsx +6 -6
- package/src/usage/UsageChart.tsx +2 -2
- package/src/usage/UsageDialog.tsx +2 -2
- package/src/usage/UsageLimits.tsx +7 -7
- package/src/usage/UsageLimitsCard.tsx +2 -2
- package/src/usage/UsagePage.tsx +5 -5
- package/src/usage/UsagePane.tsx +2 -2
- package/src/usage/UsageSummary.tsx +2 -2
- package/src/usage/UsageTiles.tsx +1 -1
- package/src/usage/limit-groups.ts +2 -2
- package/src/usage/limits.ts +1 -1
- package/src/usage/summary.ts +1 -1
- package/dist/chat/logic/json.d.ts +0 -1
- package/dist/chat/logic/json.js +0 -4
- package/src/chat/logic/json.ts +0 -4
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Button, Icon, LazyBoundary, MiddleTruncate, ScrollArea, Spinner, useTickingText } from '@adecore/ui';
|
|
3
|
+
import { formatClockDuration, formatElapsedShort } from '@adecore/ui/format';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
5
|
import i18next from 'i18next';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { ChevronRight, FileDiff, X } from 'lucide-react';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useOpenForFind } from '../find-reveal.js';
|
|
7
|
+
import { Fragment, useContext, useEffect, useState } from 'react';
|
|
8
|
+
import { useTranslation } from 'react-i18next';
|
|
10
9
|
import { useChatHost } from '../../../host.js';
|
|
11
10
|
import { useCommandNames } from '../../../host-hooks.js';
|
|
12
11
|
import { lazyNamed } from '../../../lazy.js';
|
|
13
|
-
import { useChatActions } from '../../actions.js';
|
|
14
|
-
import { formatBytes } from '../../attachments.js';
|
|
15
12
|
import { ChatScopeContext, useChatScope } from '../../../scope.js';
|
|
16
13
|
import { useAwaitsApproval, useCurrentItem } from '../../../state/chats.js';
|
|
14
|
+
import { useChatActions } from '../../actions.js';
|
|
15
|
+
import { formatBytes } from '../../attachments.js';
|
|
16
|
+
import { lookKey, lookRunOf } from '../../logic/command-looks.js';
|
|
17
|
+
import { exitCodeOf, fileChanges, hasOutput, hasToolBody, liveOutput, readImagePath, shellCommand, toolCallLines, toolStartedAt, toolSummary, toolSummaryIsPath, unifiedChanges } from '../../logic/tools.js';
|
|
17
18
|
import { useTimelineFlash } from '../../timeline-flash.js';
|
|
18
|
-
import { formatClockDuration, formatElapsedShort } from '@adecore/ui/format';
|
|
19
|
-
import { Button, Icon, LazyBoundary, MiddleTruncate, Spinner, useTickingText } from '@adecore/ui';
|
|
20
|
-
import { ROW_GUTTER, toolIcon } from '../icons.js';
|
|
21
19
|
import { AnsiOutput } from '../AnsiOutput.js';
|
|
20
|
+
import { DiffStack, ReviewStackView } from '../diff/DiffStack.js';
|
|
21
|
+
import { reviewEntries } from '../diff/review-plan.js';
|
|
22
|
+
import { useReviewStack } from '../diff/use-review-stack.js';
|
|
23
|
+
import { useOpenForFind } from '../find-reveal.js';
|
|
24
|
+
import { ROW_GUTTER, toolIcon } from '../icons.js';
|
|
22
25
|
import { ReferenceLookupContext } from '../reference-lookup.js';
|
|
23
26
|
import { RowTime } from '../RowTime.js';
|
|
24
27
|
import { ShellCommand } from '../ShellCommand.js';
|
|
25
28
|
import { useReferenceLookupIn } from '../thread-references.js';
|
|
26
|
-
import { DiffStack, ReviewStackView } from '../diff/DiffStack.js';
|
|
27
|
-
import { reviewEntries } from '../diff/review-plan.js';
|
|
28
|
-
import { useReviewStack } from '../diff/use-review-stack.js';
|
|
29
29
|
// A checkpoint opens its renderer only when a file is expanded.
|
|
30
30
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
31
|
const UnifiedDiff = lazyNamed(() => import('../UnifiedDiff.js'), 'default');
|
|
@@ -866,9 +866,11 @@ function DiffBody(t0) {
|
|
|
866
866
|
if ($[2] !== patched || $[3] !== t || $[4] !== text || $[5] !== tool || $[6] !== whole) {
|
|
867
867
|
t2 = hasOutput(text) && !patched && /*#__PURE__*/_jsxs("div", {
|
|
868
868
|
className: "border-t border-border px-3 py-2",
|
|
869
|
-
children: [/*#__PURE__*/_jsx(
|
|
869
|
+
children: [/*#__PURE__*/_jsx(ScrollArea, {
|
|
870
|
+
render: /*#__PURE__*/_jsx("pre", {}),
|
|
870
871
|
"data-find-field": "output",
|
|
871
|
-
className:
|
|
872
|
+
className: "max-h-64",
|
|
873
|
+
viewportClassName: clsx("whitespace-pre-wrap font-mono text-code select-text", tool.state === "error" ? "text-chat-removed" : "text-chat-output"),
|
|
872
874
|
children: /*#__PURE__*/_jsx(OutputText, {
|
|
873
875
|
text: text,
|
|
874
876
|
whole: whole,
|
|
@@ -933,9 +935,11 @@ function ToolOutput(t0) {
|
|
|
933
935
|
rest: text
|
|
934
936
|
};
|
|
935
937
|
code = t2;
|
|
936
|
-
t1 = hasOutput(rest) && /*#__PURE__*/_jsx(
|
|
938
|
+
t1 = hasOutput(rest) && /*#__PURE__*/_jsx(ScrollArea, {
|
|
939
|
+
render: /*#__PURE__*/_jsx("pre", {}),
|
|
937
940
|
"data-find-field": "output",
|
|
938
|
-
className:
|
|
941
|
+
className: "max-h-64",
|
|
942
|
+
viewportClassName: clsx("whitespace-pre-wrap", failed && code === null ? "text-status-error" : "text-text-muted"),
|
|
939
943
|
children: /*#__PURE__*/_jsx(OutputText, {
|
|
940
944
|
text: rest,
|
|
941
945
|
whole: whole,
|
|
@@ -1098,18 +1102,24 @@ function OwnToolBody(t0) {
|
|
|
1098
1102
|
if ($[3] !== tool.input || $[4] !== tool.name) {
|
|
1099
1103
|
const lines = toolCallLines(tool.name, tool.input);
|
|
1100
1104
|
t2 = "mt-0.5 mb-2 ml-6 flex flex-col gap-1.5 font-mono text-code select-text";
|
|
1101
|
-
t3 = lines.command !== null && /*#__PURE__*/_jsxs(
|
|
1102
|
-
|
|
1105
|
+
t3 = lines.command !== null && /*#__PURE__*/_jsxs(ScrollArea, {
|
|
1106
|
+
render: /*#__PURE__*/_jsx("pre", {}),
|
|
1107
|
+
className: "max-h-64",
|
|
1108
|
+
viewportClassName: "whitespace-pre-wrap wrap-anywhere text-text",
|
|
1103
1109
|
children: [/*#__PURE__*/_jsx(ShellCommand, {
|
|
1104
1110
|
command: lines.command.slice(0, OUTPUT_LIMIT)
|
|
1105
1111
|
}), clipNotice(lines.command)]
|
|
1106
1112
|
});
|
|
1107
|
-
t4 = lines.args.length > 0 && /*#__PURE__*/_jsx(
|
|
1108
|
-
|
|
1113
|
+
t4 = lines.args.length > 0 && /*#__PURE__*/_jsx(ScrollArea, {
|
|
1114
|
+
render: /*#__PURE__*/_jsx("dl", {}),
|
|
1115
|
+
className: "max-h-64",
|
|
1116
|
+
viewportClassName: "grid grid-cols-[auto_minmax(0,1fr)] gap-x-3",
|
|
1109
1117
|
children: lines.args.map(_temp)
|
|
1110
1118
|
});
|
|
1111
|
-
t5 = lines.text !== null && /*#__PURE__*/_jsx(
|
|
1112
|
-
|
|
1119
|
+
t5 = lines.text !== null && /*#__PURE__*/_jsx(ScrollArea, {
|
|
1120
|
+
render: /*#__PURE__*/_jsx("pre", {}),
|
|
1121
|
+
className: "max-h-64",
|
|
1122
|
+
viewportClassName: "whitespace-pre-wrap wrap-anywhere text-text",
|
|
1113
1123
|
children: clip(lines.text)
|
|
1114
1124
|
});
|
|
1115
1125
|
$[3] = tool.input;
|
|
@@ -1577,8 +1587,10 @@ export function WorkLiveRow(t0) {
|
|
|
1577
1587
|
}
|
|
1578
1588
|
let t17;
|
|
1579
1589
|
if ($[47] !== open || $[48] !== tail) {
|
|
1580
|
-
t17 = tail !== null && !open && /*#__PURE__*/_jsx(
|
|
1581
|
-
|
|
1590
|
+
t17 = tail !== null && !open && /*#__PURE__*/_jsx(ScrollArea, {
|
|
1591
|
+
render: /*#__PURE__*/_jsx("pre", {}),
|
|
1592
|
+
className: "mt-1.5 mb-2 ml-6 max-h-48 rounded-md border border-border bg-surface-raised",
|
|
1593
|
+
viewportClassName: "px-3 py-2 font-mono text-code whitespace-pre-wrap text-chat-output select-text",
|
|
1582
1594
|
children: /*#__PURE__*/_jsx(AnsiOutput, {
|
|
1583
1595
|
text: tail,
|
|
1584
1596
|
tailLines: 12
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Icon, IconButton } from '@adecore/ui';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
4
|
import { ChevronRight, Square, TriangleAlert, Workflow } from 'lucide-react';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { useChatHost } from '../../../host.js';
|
|
8
|
+
import { useChatScope } from '../../../scope.js';
|
|
9
|
+
import { useChats } from '../../../state/chats.js';
|
|
10
|
+
import { useChatActions } from '../../actions.js';
|
|
8
11
|
import { hasToolBody } from '../../logic/tools.js';
|
|
12
|
+
import { workflowCounts, workflowDescription, workflowPhases } from '../../logic/workflow.js';
|
|
9
13
|
import { useSubagentSupport } from '../../subagent-support.js';
|
|
10
14
|
import { ROW_GUTTER } from '../icons.js';
|
|
11
15
|
import { WorkflowAgentLine } from '../WorkflowAgentLine.js';
|
|
12
16
|
import { ToolBody } from './WorkRows.js';
|
|
13
|
-
import { useChatScope } from '../../../scope.js';
|
|
14
|
-
import { useChats } from '../../../state/chats.js';
|
|
15
|
-
import { useChatActions } from '../../actions.js';
|
|
16
|
-
import { useChatHost } from '../../../host.js';
|
|
17
17
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
18
|
function PhaseBlock(t0) {
|
|
19
19
|
const $ = _c(17);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useLayoutEffect, useMemo } from 'react';
|
|
3
2
|
import { diffSyntaxDocument } from '@adecore/editor-react';
|
|
3
|
+
import { useLayoutEffect, useMemo } from 'react';
|
|
4
4
|
import { useChatHost } from '../../host.js';
|
|
5
5
|
import { diffSourceTokens, diffSyntaxRuntime } from './diff-syntax.js';
|
|
6
6
|
function createSourceBinding(document, language, theme, runtime) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
1
|
import { type VisualAppearance, type VisualTheme } from '@adecore/agent-contracts/visual';
|
|
2
|
+
import { type RefObject } from 'react';
|
|
3
3
|
export interface VisualTokens {
|
|
4
4
|
color(token: string): string;
|
|
5
5
|
length(token: string): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useLayoutEffect, useState } from 'react';
|
|
3
2
|
import { cleanVisualVariables } from '@adecore/agent-contracts/visual';
|
|
4
|
-
import {
|
|
3
|
+
import { useLayoutEffect, useState } from 'react';
|
|
5
4
|
import { useHostCodeMode } from '../../host-hooks.js';
|
|
5
|
+
import { watchTheme } from './theme-watch.js';
|
|
6
6
|
/*
|
|
7
7
|
* A page's theme from the app's tokens. The names follow common component themes, where `--accent`
|
|
8
8
|
* is a quiet hover ground and `--primary` the color that stands out, so the app's accent is the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import i18next from 'i18next';
|
|
2
1
|
import { activeWorkflows } from '@adecore/agent-contracts';
|
|
2
|
+
import i18next from 'i18next';
|
|
3
3
|
import { workflowCounts, workflowPhases } from './logic/workflow.js';
|
|
4
4
|
/* What the workflow pill over the composer lists (`activeWorkflows`); `order` puts the calls from before the page first. */
|
|
5
5
|
export function flyoutWorkflows(order, structure) {
|
package/dist/host.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AgentKind, ChatAttachment, ChatCheckpointDiff, ChatConfigurePayload, ChatGoalAction, ChatItem, ChatSubagentItem, ChatUiChoicePayload, ChatUiQueryPayload, ChatUiQueryReading, ChatUiLinkPayload, ChatUiLinkReading, ChatVisual, ModelSelection, ProviderPlatform, RuntimeMode } from '@adecore/agent-contracts';
|
|
2
|
+
import type { EditorEngine } from '@adecore/editor';
|
|
2
3
|
import type { Extension } from '@codemirror/state';
|
|
3
4
|
import type { EditorView } from '@codemirror/view';
|
|
4
|
-
import type { Highlighter, ThemeRegistration } from 'shiki';
|
|
5
5
|
import type { LucideIcon } from 'lucide-react';
|
|
6
|
-
import type
|
|
7
|
-
import type {
|
|
6
|
+
import { type ComponentProps, type ComponentType, type ReactNode, type RefObject } from 'react';
|
|
7
|
+
import type { Highlighter, ThemeRegistration } from 'shiki';
|
|
8
8
|
import type { AccountRule } from './agents/accounts.js';
|
|
9
9
|
import type { ReferableKind, Referables } from './chat/chat-references.js';
|
|
10
10
|
import type { TimelineRow } from './chat/logic/timeline.js';
|
package/dist/host.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { createContext, createElement, useContext, useState } from 'react';
|
|
3
2
|
import { isApplePlatform } from '@adecore/ui';
|
|
3
|
+
import { createContext, createElement, useContext, useState } from 'react';
|
|
4
4
|
import { PlainTextarea } from './ui/PlainTextarea.js';
|
|
5
5
|
const NO_PROMPTS = [];
|
|
6
6
|
const NO_CHATS = [];
|
package/dist/lazy.js
CHANGED
|
@@ -159,6 +159,10 @@ export default {
|
|
|
159
159
|
from: 'Context compacted from {{tokens}} tokens',
|
|
160
160
|
summary: 'Everything above reaches the agent only as a summary'
|
|
161
161
|
},
|
|
162
|
+
selectionSwitch: {
|
|
163
|
+
label: '{{from}} → {{to}}',
|
|
164
|
+
summary: 'The model or reasoning effort changed before this turn'
|
|
165
|
+
},
|
|
162
166
|
approval: {
|
|
163
167
|
allow: 'Allowed',
|
|
164
168
|
'allow-always': 'Always allowed',
|
|
@@ -159,6 +159,10 @@ export default {
|
|
|
159
159
|
from: 'Context gecomprimeerd vanaf {{tokens}} tokens',
|
|
160
160
|
summary: 'Alles hierboven kent de agent alleen nog als samenvatting'
|
|
161
161
|
},
|
|
162
|
+
selectionSwitch: {
|
|
163
|
+
label: '{{from}} → {{to}}',
|
|
164
|
+
summary: 'Model of reasoning effort gewijzigd vóór deze turn'
|
|
165
|
+
},
|
|
162
166
|
approval: {
|
|
163
167
|
allow: 'Toegestaan',
|
|
164
168
|
'allow-always': 'Altijd toegestaan',
|
package/dist/port-transport.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import i18next from 'i18next';
|
|
2
1
|
import { parseServerFrame } from '@adecore/agent-contracts/envelope';
|
|
3
2
|
import { AGENT_EVENT_SCHEMAS, AGENT_REQUEST_SCHEMAS } from '@adecore/agent-contracts/protocol';
|
|
3
|
+
import i18next from 'i18next';
|
|
4
4
|
import { ChatTransportError } from './transport.js';
|
|
5
5
|
function isEventType(event) {
|
|
6
6
|
return Object.hasOwn(AGENT_EVENT_SCHEMAS, event);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import type { AgentKind } from '@adecore/agent-contracts';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
3
|
import type { ChatHost } from '../../host.js';
|
|
4
4
|
import { type PendingPrompt, type PromptAction, type PromptDraft } from './prompts.js';
|
|
5
5
|
export interface HostPrompt {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Button, ScrollArea, TextMenu } from '@adecore/ui';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
+
import { useState } from 'react';
|
|
4
5
|
import { useTranslation } from 'react-i18next';
|
|
5
6
|
import { approvalChanges, fileChanges } from '../../chat/logic/tools.js';
|
|
6
|
-
import { useChatHost } from '../../host.js';
|
|
7
7
|
import { ApprovalReview } from '../../chat/ui/diff/ApprovalReview.js';
|
|
8
8
|
import { reviewEntries } from '../../chat/ui/diff/review-plan.js';
|
|
9
|
+
import { useChatHost } from '../../host.js';
|
|
9
10
|
import { isPrimaryKey } from '../logic/keys.js';
|
|
10
|
-
import { Button, TextMenu } from '@adecore/ui';
|
|
11
11
|
/* A command in the sunken box a person reads before allowing it, with the folder it runs in when that is known. */
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
export function CommandBox(t0) {
|
|
@@ -132,8 +132,15 @@ function ApprovalDetails(t0) {
|
|
|
132
132
|
if ($[17] !== editorPreview || $[18] !== edits.length || $[19] !== entries || $[20] !== expanded || $[21] !== input || $[22] !== item.input || $[23] !== item.requestId || $[24] !== maxHeight || $[25] !== patches.length || $[26] !== t) {
|
|
133
133
|
t6 = patches.length + edits.length > 0 ? /*#__PURE__*/_jsxs("div", {
|
|
134
134
|
className: "overflow-hidden rounded-xl bg-surface-sunken",
|
|
135
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
136
|
-
className:
|
|
135
|
+
children: [editorPreview ? /*#__PURE__*/_jsx("div", {
|
|
136
|
+
className: "overflow-hidden",
|
|
137
|
+
children: /*#__PURE__*/_jsx(ApprovalReview, {
|
|
138
|
+
entries: entries,
|
|
139
|
+
maxHeight: maxHeight
|
|
140
|
+
}, item.requestId)
|
|
141
|
+
}) : /*#__PURE__*/_jsx(ScrollArea, {
|
|
142
|
+
axis: "both",
|
|
143
|
+
className: clsx(!expanded && "max-h-44"),
|
|
137
144
|
children: /*#__PURE__*/_jsx(ApprovalReview, {
|
|
138
145
|
entries: entries,
|
|
139
146
|
maxHeight: maxHeight
|
|
@@ -155,8 +162,10 @@ function ApprovalDetails(t0) {
|
|
|
155
162
|
className: "flex h-7 cursor-pointer items-center text-xs text-text-muted",
|
|
156
163
|
children: t("approval.details")
|
|
157
164
|
}), /*#__PURE__*/_jsx(TextMenu, {
|
|
158
|
-
children: /*#__PURE__*/_jsx(
|
|
159
|
-
|
|
165
|
+
children: /*#__PURE__*/_jsx(ScrollArea, {
|
|
166
|
+
render: /*#__PURE__*/_jsx("pre", {}),
|
|
167
|
+
className: "max-h-64 rounded-xl bg-surface-sunken",
|
|
168
|
+
viewportClassName: "whitespace-pre-wrap break-words p-3 font-mono text-code text-text select-text",
|
|
160
169
|
children: JSON.stringify(item.input, null, 2)
|
|
161
170
|
})
|
|
162
171
|
})]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { ArrowUp, CircleCheck } from 'lucide-react';
|
|
4
2
|
import { Button, Icon } from '@adecore/ui';
|
|
3
|
+
import { ArrowUp, CircleCheck } from 'lucide-react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
5
|
/* The one button Mod+Enter presses and ArrowDown from the heading lands on, when the body has nothing to choose. */
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
7
|
export function PromptPrimary(props) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Icon, ScrollArea } from '@adecore/ui';
|
|
3
3
|
import { Hand, MessageCircleQuestionMark } from 'lucide-react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
4
5
|
import { useChatHost } from '../../host.js';
|
|
5
6
|
import { headingKey, isPrimaryKey, staysInCard, stepIndex, toolbarKey } from '../logic/keys.js';
|
|
6
|
-
import { Icon } from '@adecore/ui';
|
|
7
7
|
/* The raised glass a chat's composer is made of, for a card that stands on its own over a canvas. */
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export const PROMPT_SURFACE = 'flex flex-col overflow-hidden rounded-2xl border border-border bg-[color-mix(in_srgb,var(--surface-raised)_92%,transparent)] shadow-float backdrop-blur-[14px]';
|
|
@@ -153,8 +153,9 @@ export function PromptCard(t0) {
|
|
|
153
153
|
}
|
|
154
154
|
let t11;
|
|
155
155
|
if ($[18] !== children || $[19] !== t10 || $[20] !== t7 || $[21] !== t8 || $[22] !== t9) {
|
|
156
|
-
t11 = /*#__PURE__*/_jsx(
|
|
157
|
-
className: "-m-1.5 max-h-[min(50dvh,480px)]
|
|
156
|
+
t11 = /*#__PURE__*/_jsx(ScrollArea, {
|
|
157
|
+
className: "-m-1.5 max-h-[min(50dvh,480px)]",
|
|
158
|
+
viewportClassName: "overscroll-contain p-1.5",
|
|
158
159
|
children: /*#__PURE__*/_jsxs("div", {
|
|
159
160
|
className: "flex flex-col gap-2",
|
|
160
161
|
children: [t7, t8, children, t9, t10]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { Pill } from '@adecore/ui';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { toolSummary } from '../../chat/logic/tools.js';
|
|
5
5
|
import { useChatHost } from '../../host.js';
|
|
6
6
|
import { answerValue, promptAnswers, questionAnswer } from '../logic/prompts.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Icon } from '@adecore/ui';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
4
|
import { Circle, CircleCheck, Square } from 'lucide-react';
|
|
5
|
+
import { useEffect, useRef } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { useChatHost } from '../../host.js';
|
|
6
8
|
import { answerFieldKey, choiceKey, stepIndex } from '../logic/keys.js';
|
|
7
9
|
import { pickPromptChoice } from '../logic/prompts.js';
|
|
8
|
-
import { Icon } from '@adecore/ui';
|
|
9
|
-
import { useChatHost } from '../../host.js';
|
|
10
10
|
/* One question of a request: its choices, "Something else…", or a written answer when it offers no choices. */
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
export function QuestionBody(t0) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { Button, copyText, Icon, Input, Switch, Tooltip } from '@adecore/ui';
|
|
3
|
+
import { ConfirmDialog, DetailHeader, SettingsRow, SettingsSection } from '@adecore/ui/settings';
|
|
4
|
+
import { LogIn } from 'lucide-react';
|
|
2
5
|
import { useState } from 'react';
|
|
3
6
|
import { Trans, useTranslation } from 'react-i18next';
|
|
4
|
-
import { LogIn } from 'lucide-react';
|
|
5
7
|
import { AccountDot } from '../agents/AccountDot.js';
|
|
6
8
|
import { accountName, FOLDER_VARIABLES } from '../agents/accounts.js';
|
|
7
|
-
import { ConfirmDialog, DetailHeader, SettingsRow, SettingsSection } from '@adecore/ui/settings';
|
|
8
|
-
import { Button, copyText, Icon, Input, Switch, Tooltip } from '@adecore/ui';
|
|
9
9
|
import { useChatHost } from '../host.js';
|
|
10
10
|
import { useChatScope } from '../scope.js';
|
|
11
11
|
import { removeAccount, saveAccount } from './account-actions.js';
|
|
12
|
-
import { AccountVariables } from './AccountVariables.js';
|
|
13
12
|
import { AccountColors } from './AccountColors.js';
|
|
13
|
+
import { AccountVariables } from './AccountVariables.js';
|
|
14
14
|
import { CliMark } from './parts.js';
|
|
15
15
|
// The states in which the machine's own sentence says more than the usual line under the login.
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { Icon, Pill, Tooltip } from '@adecore/ui';
|
|
3
|
+
import { ChevronRight, GripVertical } from 'lucide-react';
|
|
2
4
|
import { useState } from 'react';
|
|
3
5
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { ChevronRight, GripVertical } from 'lucide-react';
|
|
5
|
-
import { Icon, Pill, Tooltip } from '@adecore/ui';
|
|
6
6
|
import { AccountDot } from '../agents/AccountDot.js';
|
|
7
7
|
import { ACCOUNT_TONE_CLASSES, accountName, accountStatusLine, movedIds, topAccountEntry } from '../agents/accounts.js';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { Button, FormError, Icon, IconButton, Input, Tooltip } from '@adecore/ui';
|
|
2
|
+
import { SettingsRow, SettingsSection } from '@adecore/ui/settings';
|
|
3
|
+
import { Lock, LockOpen, Plus, X } from 'lucide-react';
|
|
1
4
|
import { useState } from 'react';
|
|
2
5
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { Lock, LockOpen, Plus, X } from 'lucide-react';
|
|
4
6
|
import { useChatHost } from '../host.js';
|
|
5
7
|
import { useChatScope } from '../scope.js';
|
|
6
8
|
import { saveAccount } from './account-actions.js';
|
|
7
9
|
import { draftsOf, emptyDraft, variablesChanged, variablesOf, variablesProblem } from './variables.js';
|
|
8
|
-
import { SettingsRow, SettingsSection } from '@adecore/ui/settings';
|
|
9
|
-
import { Button, FormError, Icon, IconButton, Input, Tooltip } from '@adecore/ui';
|
|
10
10
|
/*
|
|
11
11
|
* The environment of one account, edited as a whole and saved with one button: a half-typed name or a
|
|
12
12
|
* secret that still has to be retyped would otherwise reach the machine one keystroke at a time.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button, FormError, Icon, Input } from '@adecore/ui';
|
|
2
|
+
import { DetailHeader, SettingsRow, SettingsSection } from '@adecore/ui/settings';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { ChevronRight } from 'lucide-react';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
5
7
|
import { freeAccountColor, mintAccountId } from '../agents/accounts.js';
|
|
6
8
|
import { useChatHost } from '../host.js';
|
|
7
9
|
import { useChatScope } from '../scope.js';
|
|
10
|
+
import { providerAccountsOf } from '../state/provider-accounts.js';
|
|
11
|
+
import { errorMessage } from '../transport.js';
|
|
8
12
|
import { createAccount, linkAccount } from './account-actions.js';
|
|
9
13
|
import { AccountColors } from './AccountColors.js';
|
|
10
|
-
import { DetailHeader, SettingsRow, SettingsSection } from '@adecore/ui/settings';
|
|
11
|
-
import { Button, FormError, Icon, Input } from '@adecore/ui';
|
|
12
14
|
import { CliTile } from './parts.js';
|
|
13
|
-
import { providerAccountsOf } from '../state/provider-accounts.js';
|
|
14
|
-
import { errorMessage } from '../transport.js';
|
|
15
15
|
/*
|
|
16
16
|
* A name and a color, asked before anything exists, so the account is made once with both. By default
|
|
17
17
|
* the machine makes the folder; under Advanced a person points at a folder of their own instead.
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Button, Icon, Select } from '@adecore/ui';
|
|
3
|
+
import { DetailHeader, SettingsRow, SettingsSection } from '@adecore/ui/settings';
|
|
3
4
|
import { Plus } from 'lucide-react';
|
|
4
|
-
import {
|
|
5
|
-
import { carryOptions } from '../agents/model-options.js';
|
|
6
|
-
import { optionWord } from '../agents/option-words.js';
|
|
5
|
+
import { useTranslation } from 'react-i18next';
|
|
7
6
|
import { AccountDot } from '../agents/AccountDot.js';
|
|
8
7
|
import { accountName, offeredAccounts } from '../agents/accounts.js';
|
|
8
|
+
import { carryOptions } from '../agents/model-options.js';
|
|
9
|
+
import { ModelOptionControl } from '../agents/ModelOptionControl.js';
|
|
10
|
+
import { optionWord } from '../agents/option-words.js';
|
|
9
11
|
import { accountFor, forgetChatSelection, rememberChatAccount, rememberChatSelection, selectionFor, useChatPreferences } from '../chat/preferences.js';
|
|
10
|
-
import { knownAccounts, useProviderAccounts } from '../state/provider-accounts.js';
|
|
11
12
|
import { useChatHost } from '../host.js';
|
|
12
13
|
import { useHostCanReorderAccounts } from '../host-hooks.js';
|
|
13
14
|
import { useChatScope } from '../scope.js';
|
|
15
|
+
import { knownAccounts, useProviderAccounts } from '../state/provider-accounts.js';
|
|
14
16
|
import { reorderAccounts } from './account-actions.js';
|
|
15
17
|
import { AccountOrderList } from './AccountOrderList.js';
|
|
16
|
-
import { providerAbilities } from './provider-abilities.js';
|
|
17
|
-
import { DetailHeader, SettingsRow, SettingsSection } from '@adecore/ui/settings';
|
|
18
|
-
import { Button, Icon, Select } from '@adecore/ui';
|
|
19
18
|
import { CliTile } from './parts.js';
|
|
19
|
+
import { providerAbilities } from './provider-abilities.js';
|
|
20
20
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
21
|
const PROVIDER_DEFAULT = '';
|
|
22
22
|
/* One row per knob the chosen model exposes; the composer's option picker shows the same descriptors. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Button, copyText, Icon, Pill, Segmented } from '@adecore/ui';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import { Trans, useTranslation } from 'react-i18next';
|
|
5
4
|
import { Check, Copy, ExternalLink, SquareTerminal } from 'lucide-react';
|
|
6
|
-
import {
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
7
7
|
import { useChatHost } from '../host.js';
|
|
8
8
|
import { useHostMachinePlatform } from '../host-hooks.js';
|
|
9
9
|
import { useChatScope } from '../scope.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { Icon, IconButton, SectionLabel } from '@adecore/ui';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { Plus } from 'lucide-react';
|
|
5
|
+
import { useTranslation } from 'react-i18next';
|
|
5
6
|
import { AccountDot } from '../agents/AccountDot.js';
|
|
6
7
|
import { accountName } from '../agents/accounts.js';
|
|
7
|
-
import { Icon, IconButton, SectionLabel } from '@adecore/ui';
|
|
8
8
|
import { CliMark } from './parts.js';
|
|
9
9
|
import { accountNote } from './provider-groups.js';
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
import type { AgentKind, ProviderInfo } from '@adecore/agent-contracts';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
3
|
import type { ProviderInstallStep } from './install-steps.js';
|
|
4
4
|
import { type ProviderSetupStatus } from './provider-groups.js';
|
|
5
5
|
interface ProvidersPaneProps {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { ErrorBoundary, Skeleton } from '@adecore/ui';
|
|
3
|
+
import { MasterDetail } from '@adecore/ui/settings';
|
|
2
4
|
import { useState } from 'react';
|
|
3
5
|
import { useTranslation } from 'react-i18next';
|
|
4
6
|
import { accountLoginOf, accountsOfKind } from '../agents/accounts.js';
|
|
5
|
-
import { ErrorBoundary, Skeleton } from '@adecore/ui';
|
|
6
|
-
import { MasterDetail } from '@adecore/ui/settings';
|
|
7
7
|
import { useChatHost } from '../host.js';
|
|
8
|
+
import { useHostLoginBlocked } from '../host-hooks.js';
|
|
8
9
|
import { useChatScope } from '../scope.js';
|
|
10
|
+
import { useProviderAccounts } from '../state/provider-accounts.js';
|
|
11
|
+
import { useProviders } from '../state/providers.js';
|
|
9
12
|
import { AccountDetail } from './AccountDetail.js';
|
|
10
13
|
import { AddAccountForm } from './AddAccountForm.js';
|
|
11
14
|
import { CliDetail } from './CliDetail.js';
|
|
@@ -13,9 +16,6 @@ import { InstallPage } from './InstallPage.js';
|
|
|
13
16
|
import { pickOfCli, pickOfTarget } from './pane-target.js';
|
|
14
17
|
import { groupProviders } from './provider-groups.js';
|
|
15
18
|
import { ProviderList } from './ProviderList.js';
|
|
16
|
-
import { useProviderAccounts } from '../state/provider-accounts.js';
|
|
17
|
-
import { useProviders } from '../state/providers.js';
|
|
18
|
-
import { useHostLoginBlocked } from '../host-hooks.js';
|
|
19
19
|
/* The agent CLIs of the host in scope, each with its accounts, beside the detail of what is picked. */
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
21
|
export function ProvidersPane(t0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
import { type LucideIcon } from 'lucide-react';
|
|
3
1
|
import type { SettingsSectionEntry } from '@adecore/ui/settings';
|
|
2
|
+
import { type LucideIcon } from 'lucide-react';
|
|
3
|
+
import type { ComponentType } from 'react';
|
|
4
4
|
export interface AgentsSettingsSection {
|
|
5
5
|
id: string;
|
|
6
6
|
icon: LucideIcon;
|
package/dist/state/chats.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { appendToolOutput } from '@adecore/agent-contracts/text';
|
|
2
3
|
import { useContext } from 'react';
|
|
3
4
|
import { create } from 'zustand';
|
|
4
|
-
import { appendToolOutput } from '@adecore/agent-contracts/text';
|
|
5
5
|
import { ChatScopeContext, useChatScope } from '../scope.js';
|
|
6
6
|
export function isWaiting(item) {
|
|
7
7
|
return item?.kind === 'approval' && item.decision === 'pending' || item?.kind === 'question' && item.state === 'pending';
|
package/dist/state/usage.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { chatStorageKey, chatStorageLegacyKeys, createChatStore, onChatStorageConfiguration } from '../storage.js';
|
|
3
|
-
import { persistedJson } from '../chat/persisted-json.js';
|
|
4
2
|
import { localTimeZone } from '@adecore/ui/format';
|
|
3
|
+
import { persistedJson } from '../chat/persisted-json.js';
|
|
5
4
|
import { useChatScope } from '../scope.js';
|
|
5
|
+
import { chatStorageKey, chatStorageLegacyKeys, createChatStore, onChatStorageConfiguration } from '../storage.js';
|
|
6
6
|
/* Only the id and the length. A store has no words, so the page names a period in its own language. */
|
|
7
7
|
export const USAGE_PERIODS = [{
|
|
8
8
|
id: 'today',
|