mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
refactor: organize native chat input and transcript owners (#37334)
This commit is contained in:
@@ -12685,12 +12685,12 @@
|
||||
"src/shared/model-id-label.test.ts": 47,
|
||||
"src/shared/modifier-double-tap-detector.test.ts": 49,
|
||||
"src/shared/muse-session-log.test.ts": 67,
|
||||
"src/shared/native-chat-approval-envelope.test.ts": 55,
|
||||
"src/shared/native-chat/input/native-chat-approval-envelope.test.ts": 55,
|
||||
"src/shared/native-chat-composer-autocomplete.test.ts": 252,
|
||||
"src/shared/native-chat-interactive-prompt.test.ts": 75,
|
||||
"src/shared/native-chat-launch-draft-resolution.test.ts": 54,
|
||||
"src/shared/native-chat-message-copy-text.test.ts": 162,
|
||||
"src/shared/native-chat-paste-bytes.test.ts": 59,
|
||||
"src/shared/native-chat/input/native-chat-paste-bytes.test.ts": 59,
|
||||
"src/shared/native-chat-pending-occurrence.test.ts": 68,
|
||||
"src/shared/native-chat-pending-pasted-content.test.ts": 65,
|
||||
"src/shared/native-chat-pending-sends.test.ts": 138,
|
||||
|
||||
@@ -12,7 +12,7 @@ import { vi } from 'vitest'
|
||||
import { useMobileNativeChatController } from '../native-chat/use-mobile-native-chat-controller'
|
||||
import { MobileNativeChatOverlay } from '../native-chat/MobileNativeChatOverlay'
|
||||
import { MobileNativeChatAsk } from '../native-chat/input/MobileNativeChatAsk'
|
||||
import type { AskAnswerSelection } from '../../../../src/shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import { mobileNativeChatPromptDismissals } from '../native-chat/input/mobile-native-chat-prompt-dismissals'
|
||||
import { setMobileNativeChatDraftText } from '../native-chat/composer/mobile-native-chat-draft-store'
|
||||
export const visible = { value: true }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { nativeChatQueueFollowUpsRead } from '../transport/settings-read-operations'
|
||||
import type { RpcClient } from '../transport/rpc-client'
|
||||
import { nativeChatQueueFollowUps } from '../../../src/shared/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
|
||||
const projections = new WeakMap<RpcClient, MobileNativeChatFollowUpPreference>()
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { afterEach, expect, it, vi } from 'vitest'
|
||||
import capture from '../../../src/shared/__fixtures__/omp-native-commands.json'
|
||||
import * as catalog from '../../../src/shared/native-chat/input/native-chat-slash-commands'
|
||||
import type { NativeChatPickerItem } from '../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import { deriveComposerAutocomplete } from '../../../src/shared/native-chat-composer-autocomplete'
|
||||
import { deriveComposerAutocomplete } from '../../../src/shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import {
|
||||
mobileComposerCatalog,
|
||||
boundedMenuItems
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
agentSessionPromptQuestions,
|
||||
type AgentSessionQuestionAnswer
|
||||
} from '../../../src/shared/agent-session/agent-session-question-answer'
|
||||
import { chatApprovalFromJournal } from '../../../src/shared/native-chat-interactive-prompt'
|
||||
import { chatApprovalFromJournal } from '../../../src/shared/native-chat/input/native-chat-interactive-prompt'
|
||||
import type { MobileChatPermission } from './native-chat/input/mobile-native-chat-permission'
|
||||
import type { MobileChatQuestion } from './native-chat/input/mobile-native-chat-question'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { AgentSessionSlashCommand } from '../../../src/shared/agent-session/agent-session-wire'
|
||||
import type { NativeChatSendFollowUp } from '../../../src/shared/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { RpcClient } from '../transport/rpc-client'
|
||||
import type { StructuredAgentSessionHostSupport } from './mobile-structured-agent-session-host-support'
|
||||
import type {
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
import { type NativeScrollEvent, type NativeSyntheticEvent, Text, View } from 'react-native'
|
||||
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
||||
import { GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler'
|
||||
import type { AskAnswerSelection } from '../../../../src/shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { NativeChatMessage } from '../../../../src/shared/native-chat/native-chat-types'
|
||||
import type {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getNativeChatAgentProfile } from '../../../../../src/shared/native-chat/native-chat-agent-profiles'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import {
|
||||
recordMobileNativeChatSkillPick,
|
||||
useMobileNativeChatDraft
|
||||
|
||||
@@ -3,7 +3,7 @@ import { CornerDownRight, ListEnd } from 'lucide-react-native'
|
||||
import type {
|
||||
NativeChatFollowUpBehavior,
|
||||
NativeChatSendFollowUp
|
||||
} from '../../../../../src/shared/native-chat-follow-up-behavior'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import { ActionSheetModal } from '../../../components/ActionSheetModal'
|
||||
import { ComposerSendButton } from '../../../components/composer-input/ComposerSendButton'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { prepareQueuedMessageEditText } from '../../../../../src/shared/queued-message-edit-command'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { deriveComposerAutocomplete } from '../../../../../src/shared/native-chat-composer-autocomplete'
|
||||
import { deriveComposerAutocomplete } from '../../../../../src/shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import {
|
||||
boundedMenuItems,
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
getNativeChatAgentProfile,
|
||||
type NativeChatAgentProfile
|
||||
} from '../../../../../src/shared/native-chat/native-chat-agent-profiles'
|
||||
import { nativeChatPickerScannedSkills } from '../../../../../src/shared/native-chat-composer-autocomplete'
|
||||
import { nativeChatPickerScannedSkills } from '../../../../../src/shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import {
|
||||
buildNativeChatPickerItems,
|
||||
type NativeChatPickerItem,
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
import {
|
||||
nativeChatPickerCommands,
|
||||
nativeChatSessionSkills
|
||||
} from '../../../../../src/shared/native-chat-skill-visibility'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-skill-visibility'
|
||||
import type {
|
||||
NativeChatSessionSkill,
|
||||
SlashCommandSuggestion
|
||||
|
||||
@@ -9,8 +9,8 @@ import {
|
||||
normalizeNativeChatUserText,
|
||||
normalizedNativeChatUserMessageText
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-image-transcript-markers'
|
||||
import { nativeChatPendingOccurrence } from '../../../../../src/shared/native-chat-pending-occurrence'
|
||||
import type { NativeChatPendingSend } from '../../../../../src/shared/native-chat-pending-sends'
|
||||
import { nativeChatPendingOccurrence } from '../../../../../src/shared/native-chat/transcript/native-chat-pending-occurrence'
|
||||
import type { NativeChatPendingSend } from '../../../../../src/shared/native-chat/transcript/native-chat-pending-sends'
|
||||
|
||||
export type UnconfirmedSend = {
|
||||
draftKey: string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { agentImagePasteWrites } from '../../../../../src/shared/agent-image-paste'
|
||||
import { agentImagePastePath } from '../../../../../src/shared/agent-image-paste-path'
|
||||
import { buildNativeChatImagePasteBytes } from '../../../../../src/shared/native-chat-paste-bytes'
|
||||
import { buildNativeChatImagePasteBytes } from '../../../../../src/shared/native-chat/input/native-chat-paste-bytes'
|
||||
import {
|
||||
MOBILE_NATIVE_CHAT_MIN_WRITE_TIMEOUT_MS,
|
||||
openMobileNativeChatSendBudget
|
||||
|
||||
@@ -2,10 +2,10 @@ import { prepareQueuedMessageEditText } from '../../../../../src/shared/queued-m
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react'
|
||||
import {
|
||||
applyMentionSuggestion,
|
||||
applyPickerSuggestion,
|
||||
deriveComposerAutocomplete,
|
||||
isSkillPickerTriggered
|
||||
} from '../../../../../src/shared/native-chat-composer-autocomplete'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import { applyPickerSuggestion } from '../../../../../src/shared/native-chat/input/native-chat-picker-triggers'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import {
|
||||
boundedMenuItems,
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
launchDraftResolvedByTranscript,
|
||||
nativeChatLaunchDraftTurnBaseline,
|
||||
type NativeChatLaunchDraftTurnBaseline
|
||||
} from '../../../../../src/shared/native-chat-launch-draft-resolution'
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-launch-draft-resolution'
|
||||
import { normalizedUserText } from './mobile-native-chat-draft-reconcile'
|
||||
import { mobileNativeChatLaunchDraftSeeds } from './mobile-native-chat-draft-store'
|
||||
import { mobileNativeChatDraftDestination } from './mobile-native-chat-draft-inputs'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react'
|
||||
import type { z } from 'zod'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import { isNativeChatSkillForAgent } from '../../../../../src/shared/native-chat-skill-visibility'
|
||||
import { isNativeChatSkillForAgent } from '../../../../../src/shared/native-chat/input/native-chat-skill-visibility'
|
||||
import type { RpcClient } from '../../../transport/rpc-client'
|
||||
import { nativeChatSkillDiscoveryRead } from '../../mobile-session-read-operations'
|
||||
import type { skillDiscoveryReplySchema } from '../../session-read-reply-schema'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useRef, useState } from 'react'
|
||||
import { Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'
|
||||
import { Check } from 'lucide-react-native'
|
||||
import type { AskAnswerSelection } from '../../../../../src/shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { AgentJournalFreeTextInput } from '../../../../../src/shared/agent-session/journal/agent-session-journal-types'
|
||||
import {
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
askConfirmLabel,
|
||||
askTypedText,
|
||||
toggleAskOption
|
||||
} from '../../../../../src/shared/native-chat-ask-card-rules'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-ask-card-rules'
|
||||
import { colors, radii, spacing, typography, pressedStyle } from '../../../theme/mobile-theme'
|
||||
import { themedStyleSheet } from '../../../theme/themed-styles'
|
||||
import { useMobileColorScheme } from '../../../theme/use-mobile-color-scheme'
|
||||
|
||||
@@ -4,7 +4,7 @@ import { act, create, type ReactTestInstance, type ReactTestRenderer } from 'rea
|
||||
import { Pressable, TextInput } from 'react-native'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { useMobileNativeChatAskDismiss } from './use-mobile-native-chat-ask-dismiss'
|
||||
import { nativeChatAskDismissKey } from '../../../../../src/shared/native-chat-ask-dismiss-key'
|
||||
import { nativeChatAskDismissKey } from '../../../../../src/shared/native-chat/input/native-chat-ask-dismiss-key'
|
||||
import { MobileNativeChatPromptCard } from './MobileNativeChatPromptCard'
|
||||
|
||||
vi.mock('react-native', async () => ({
|
||||
|
||||
@@ -15,7 +15,7 @@ import { colors, pressedStyle, radii, spacing, typography } from '../../../theme
|
||||
import { themedStyleSheet } from '../../../theme/themed-styles'
|
||||
import { useMobileColorScheme } from '../../../theme/use-mobile-color-scheme'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import type { AskAnswerSelection } from '../../../../../src/shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import { MobileNativeChatAsk } from './MobileNativeChatAsk'
|
||||
import { MobileNativeChatPermission } from './MobileNativeChatPermission'
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
nativeChatOptionValuesLabel,
|
||||
nativeChatSessionOptionDisabledReason,
|
||||
nativeChatSessionOptionLabel
|
||||
} from '../../../../../src/shared/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
import { sayMobileNativeChatSessionOption as say } from './native-chat-session-option-copy'
|
||||
import { mobileSessionOptionSummaryValue } from './mobile-native-chat-session-option-labels'
|
||||
import {
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
nativeChatSessionChoiceLabel,
|
||||
nativeChatSessionOptionActionLabel,
|
||||
nativeChatSessionOptionLabel
|
||||
} from '../../../../../src/shared/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
import { sayMobileNativeChatSessionOption as say } from './native-chat-session-option-copy'
|
||||
import { MobileSwitch } from '../../../components/MobileSwitch'
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
import {
|
||||
nativeChatSessionChoiceShortLabel,
|
||||
nativeChatSessionOptionLabel
|
||||
} from '../../../../../src/shared/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
import { sayMobileNativeChatSessionOption as say } from './native-chat-session-option-copy'
|
||||
import { SessionOptionCaption } from './MobileNativeChatSessionOptionRows'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ChatApproval } from '../../../../../src/shared/native-chat-interactive-prompt'
|
||||
import type { ChatApproval } from '../../../../../src/shared/native-chat/input/native-chat-interactive-prompt'
|
||||
|
||||
export type MobileChatPermission = ChatApproval & {
|
||||
/** Structured prompt identity, present only when the host can cancel it exactly. */
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { SessionOptionDescriptor } from '../../../../../src/shared/native-c
|
||||
import {
|
||||
nativeChatSessionChoiceLabel,
|
||||
selectedNativeChatChoice
|
||||
} from '../../../../../src/shared/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
import { sayMobileNativeChatSessionOption as say } from './native-chat-session-option-copy'
|
||||
|
||||
/** The value a drill-in row shows beside its label; desktop lists the choices in place instead. */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { NativeChatSessionOptionSay } from '../../../../../src/shared/native-chat-session-option-labels'
|
||||
import type { NativeChatSessionOptionSay } from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
import { translate } from '../../../i18n/mobile-i18n'
|
||||
|
||||
export const sayMobileNativeChatSessionOption: NativeChatSessionOptionSay = (id, values) => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { act, create, type ReactTestRenderer } from 'react-test-renderer'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { AgentType } from '../../../../../src/shared/agent-status-types'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat-paste-bytes'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat/input/native-chat-paste-bytes'
|
||||
import type { RpcClient } from '../../../transport/rpc-client'
|
||||
import { markRpcDeliveryUnknown } from '../../../transport/rpc-delivery-ambiguity'
|
||||
import { MOBILE_NATIVE_CHAT_QUESTION_STEP_MS } from './mobile-native-chat-answer-stepping'
|
||||
|
||||
@@ -4,8 +4,8 @@ import {
|
||||
buildCodexAskAnswerKeys,
|
||||
formatAskAnswer,
|
||||
hasAskAnswer
|
||||
} from '../../../../../src/shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../../src/shared/native-chat-ask-answer'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { RpcClient } from '../../../transport/rpc-client'
|
||||
import { MOBILE_NATIVE_CHAT_QUESTION_STEP_MS } from './mobile-native-chat-answer-stepping'
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
resolveNativeChatTranscriptAgent,
|
||||
shouldStepNativeChatAskAnswer
|
||||
} from '../../../../../src/shared/native-chat/native-chat-agent-support'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat-paste-bytes'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat/input/native-chat-paste-bytes'
|
||||
|
||||
export type MobileNativeChatAnswerSend = {
|
||||
answerAsk: (prompt: AskPrompt, selections: AskAnswerSelection[]) => Promise<boolean>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { useEffect, useLayoutEffect, useMemo, useRef, useSyncExternalStore } from 'react'
|
||||
import type { InteractivePromptCard } from '../../../../../src/shared/native-chat-interactive-prompt'
|
||||
import type { InteractivePromptCard } from '../../../../../src/shared/native-chat/input/native-chat-interactive-prompt'
|
||||
import {
|
||||
nativeChatCardDismissKey,
|
||||
nativeChatPromptDismissalMatches,
|
||||
nativeChatPromptOccurrenceKey
|
||||
} from '../../../../../src/shared/native-chat-prompt-dismiss-key'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-prompt-dismiss-key'
|
||||
import {
|
||||
mobileNativeChatPromptDismissals as dismissals,
|
||||
type MobileNativeChatPromptDismissal
|
||||
|
||||
@@ -8,8 +8,8 @@ import type { AskPrompt } from '../../../../../src/shared/native-chat/input/nati
|
||||
import {
|
||||
resolveNativeChatInteractivePromptCard,
|
||||
type ChatApproval
|
||||
} from '../../../../../src/shared/native-chat-interactive-prompt'
|
||||
import { nativeChatPromptWaitStartedAt } from '../../../../../src/shared/native-chat-prompt-dismiss-key'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-interactive-prompt'
|
||||
import { nativeChatPromptWaitStartedAt } from '../../../../../src/shared/native-chat/input/native-chat-prompt-dismiss-key'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import {
|
||||
useMobileStructuredAsyncQuestion,
|
||||
|
||||
@@ -23,12 +23,12 @@ import type { MobileNativeChatSendOutcome } from '../mobile-native-chat-send'
|
||||
import {
|
||||
createNativeChatPtySessionOptions,
|
||||
type NativeChatPtySessionOptionsSurface
|
||||
} from '../../../../../src/shared/native-chat-pty-session-options'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-pty-session-options'
|
||||
import {
|
||||
clearNativeChatSessionOptionCacheForTests,
|
||||
readNativeChatSessionOptionCache,
|
||||
writeNativeChatSessionOptionCache
|
||||
} from '../../../../../src/shared/native-chat-session-option-cache'
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-cache'
|
||||
import {
|
||||
createNativeChatSessionOptionRecord,
|
||||
matchNativeChatCatalogModelId
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import type { NativeChatSendFollowUp } from '../../../../src/shared/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { StructuredMobileSendAttachment } from '../use-mobile-structured-send-with-outcome'
|
||||
import type { MobileSessionView } from '../../storage/session-view-preferences'
|
||||
import type { Dispatch, MutableRefObject, SetStateAction } from 'react'
|
||||
import type { AskAnswerSelection } from '../../../../src/shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { MobileChatPermission } from './input/mobile-native-chat-permission'
|
||||
import type { MobileChatQuestion } from './input/mobile-native-chat-question'
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { AgentStatusEntry } from '../../../../src/shared/agent-status-types
|
||||
import {
|
||||
isNativeChatAgentAvailable,
|
||||
nativeChatAvailabilityAgent
|
||||
} from '../../../../src/shared/native-chat-availability'
|
||||
} from '../../../../src/shared/native-chat/native-chat-availability'
|
||||
import { isNativeChatTranscriptLocalReadable } from '../../../../src/shared/native-chat/transcript/native-chat-transcript-readability'
|
||||
|
||||
export type MobileNativeChatResolution = {
|
||||
|
||||
@@ -3,13 +3,13 @@ import type { MobileNativeChatDraftDestination } from './composer/mobile-native-
|
||||
import {
|
||||
assignNativeChatPendingOccurrence,
|
||||
nativeChatPendingContentKey
|
||||
} from '../../../../src/shared/native-chat-pending-occurrence'
|
||||
} from '../../../../src/shared/native-chat/transcript/native-chat-pending-occurrence'
|
||||
import {
|
||||
NATIVE_CHAT_PENDING_SEND_LIMIT,
|
||||
prunePendingSends,
|
||||
visibleNativeChatPendingSends,
|
||||
type NativeChatPendingSend
|
||||
} from '../../../../src/shared/native-chat-pending-sends'
|
||||
} from '../../../../src/shared/native-chat/transcript/native-chat-pending-sends'
|
||||
|
||||
export type MobileNativeChatPendingMessage = NativeChatPendingSend & {
|
||||
// Phone-local preview URIs; these echoes retire only once their preview binds to a transcript row.
|
||||
|
||||
@@ -20,7 +20,7 @@ import type {
|
||||
NativeChatToolCallBlock
|
||||
} from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { MobileSourceCopyButton } from '../../../components/MobileSourceCopyButton'
|
||||
import { nativeChatMessageCopyText } from '../../../../../src/shared/native-chat-message-copy-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../../src/shared/native-chat/transcript/native-chat-message-copy-text'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/native-chat-row-content'
|
||||
import {
|
||||
MobileNativeChatGroupedThought,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { agentMessageTranscriptText } from '../../../../../src/shared/agent-session/agent-message-display-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../../src/shared/native-chat-message-copy-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../../src/shared/native-chat/transcript/native-chat-message-copy-text'
|
||||
|
||||
export function mobileNativeChatDisplayCopyText(message: NativeChatMessage): string {
|
||||
return message.role === 'user' && message.from
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
AGENT_TUI_CLEAR_INPUT_LINE,
|
||||
buildAgentTuiClearInputForText
|
||||
} from '../../../../../src/shared/agent-tui-input-clear'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat-paste-bytes'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat/input/native-chat-paste-bytes'
|
||||
|
||||
export type MobileNativeChatMessageSend = {
|
||||
send: (text: string, images?: string[]) => Promise<boolean>
|
||||
|
||||
@@ -12,7 +12,7 @@ import type {
|
||||
NativeChatSettledTurns,
|
||||
NativeChatTurnStatus
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import { isNativeChatRowInLiveWorkingTurn } from '../../../../../src/shared/native-chat-live-turn-membership'
|
||||
import { isNativeChatRowInLiveWorkingTurn } from '../../../../../src/shared/native-chat/transcript/native-chat-live-turn-membership'
|
||||
import {
|
||||
nativeChatTurnMembership,
|
||||
type NativeChatTurnJournal
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { CatalogModel } from '../../../src/shared/agent-session/options/age
|
||||
import {
|
||||
catalogModelsFromModelDiscovery,
|
||||
mergeDiscoveredCatalogModels
|
||||
} from '../../../src/shared/native-chat-discovered-catalog-models'
|
||||
} from '../../../src/shared/native-chat/input/native-chat-discovered-catalog-models'
|
||||
import { defineRpcOperation, runRpcOperation } from '../transport/rpc-operation'
|
||||
|
||||
const discoveredModel = z.object({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useMobileAsyncQuestionHides } from './native-chat/input/use-mobile-native-chat-prompt-dismiss'
|
||||
import type { AskPrompt } from '../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { AskAnswerSelection } from '../../../src/shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AgentStatusEntry } from '../../../src/shared/agent-status-types'
|
||||
import type { MobileNativeChatController } from './native-chat/mobile-native-chat-controller-contract'
|
||||
import type { useMobileBridgeChatPromptWrites } from './use-mobile-bridge-chat-prompt-writes'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useCallback, useSyncExternalStore } from 'react'
|
||||
import { nativeChatQueueFollowUps } from '../../../src/shared/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { RpcClient } from '../transport/rpc-client'
|
||||
import { mobileNativeChatFollowUpPreference } from './mobile-native-chat-follow-up-preference'
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ import { useCallback } from 'react'
|
||||
import {
|
||||
formatAskAnswer,
|
||||
type AskAnswerSelection
|
||||
} from '../../../src/shared/native-chat-ask-answer'
|
||||
import { nativeChatAnswerSendIntent } from '../../../src/shared/native-chat-follow-up-behavior'
|
||||
} from '../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import { nativeChatAnswerSendIntent } from '../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { AskPrompt } from '../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { QueuedMessageCard } from '../../../src/shared/agent-session/view/structured-agent-session-queued-cards'
|
||||
import type { useMobileStructuredAgentSession } from './use-mobile-structured-agent-session'
|
||||
|
||||
@@ -8,7 +8,7 @@ import { mobileStructuredSendQueues } from './use-mobile-structured-send-with-ou
|
||||
import {
|
||||
nativeChatSendFollowUp,
|
||||
type NativeChatSendFollowUp
|
||||
} from '../../../src/shared/native-chat-follow-up-behavior'
|
||||
} from '../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
|
||||
export function useMobileStructuredTurnIndicator(input: {
|
||||
state: StructuredAgentSessionState
|
||||
|
||||
@@ -13,7 +13,7 @@ import { tmpdir } from 'node:os'
|
||||
import type { GlobalSettings } from '../../../shared/global-settings-types'
|
||||
import type { PersistedState } from '../../../shared/persisted-state-types'
|
||||
import { getDefaultPersistedState } from '../../../shared/constants'
|
||||
import { nativeChatQueueFollowUps } from '../../../shared/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import { ONBOARDING_FINAL_STEP, ONBOARDING_FLOW_VERSION } from '../../../shared/onboarding-defaults'
|
||||
|
||||
const { loadUserSshConfigMock, sshConfigHostsToTargetsMock } = vi.hoisted(() => ({
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
AGENT_STATUS_INTERACTIVE_PROMPT_MAX_LENGTH,
|
||||
parseAgentStatusPayload
|
||||
} from '../../../../shared/agent-status-types'
|
||||
import { nativeChatAskDismissKey } from '../../../../shared/native-chat-ask-dismiss-key'
|
||||
import { nativeChatAskDismissKey } from '../../../../shared/native-chat/input/native-chat-ask-dismiss-key'
|
||||
import {
|
||||
parseAskFromStatus,
|
||||
parseAskFromToolInput
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
import { testOrcaSessionId } from '../../../../../shared/orca-session-address-test-fixture'
|
||||
import { agentMessageDisplayText } from '../../../../../shared/agent-session/agent-message-display-text'
|
||||
import { readAgentMessageSource } from '../../../../../shared/agent-session/agent-session-message-source'
|
||||
import { nativeChatMessageCopyText } from '../../../../../shared/native-chat-message-copy-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../../shared/native-chat/transcript/native-chat-message-copy-text'
|
||||
import {
|
||||
projectQueuedMessageCards,
|
||||
queuedMessageCardLine
|
||||
|
||||
@@ -17,7 +17,7 @@ import type { GlobalSettings } from '../../shared/global-settings-types'
|
||||
import { applyNativeChatSessionOptionSettingsMutation } from '../../shared/native-chat/input/native-chat-session-option-defaults'
|
||||
import type { NativeChatSessionOptionSettingsMutation } from '../../shared/native-chat/input/native-chat-session-options'
|
||||
import { getHostDisplayLabelOverrides } from '../../shared/host-setting-overrides'
|
||||
import { nativeChatQueueFollowUps } from '../../shared/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { TerminalQuickCommand } from '../../shared/terminal-quick-command-types'
|
||||
import { recordManagedHookInstallFailure } from '../agent-hooks/install-telemetry'
|
||||
import { applyAgentStatusHooksEnabled } from '../agent-hooks/managed-agent-hook-controls'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { nativeChatQueueFollowUps } from '../../shared/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { RuntimeClientEvent } from '../../shared/runtime-client-events'
|
||||
import type { RuntimeStore } from './runtime-store-contract'
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
isPlanApprovalSubject
|
||||
} from '../../../../shared/agent-session/agent-session-approval-subject'
|
||||
import { NativeChatCodeBlock } from './NativeChatCodeBlock'
|
||||
import type { ChatApproval } from '../../../../shared/native-chat-interactive-prompt'
|
||||
import type { ChatApproval } from '../../../../shared/native-chat/input/native-chat-interactive-prompt'
|
||||
import { NativeChatPromptCollapseToggle } from './NativeChatPromptCollapse'
|
||||
import { useNativeChatPromptCardFocus } from './use-native-chat-prompt-card-focus'
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { NativeChatMentionMenu, NativeChatPickerMenu } from './NativeChatAutocom
|
||||
import { Popover, PopoverAnchor, PopoverContent } from '@/components/ui/popover'
|
||||
import { buildNativeChatPickerItems } from '../../../../shared/native-chat/input/native-chat-picker-items'
|
||||
import { sessionSlashCommandSuggestions } from '../../../../shared/native-chat/input/native-chat-slash-commands'
|
||||
import type { ComposerAutocomplete } from '../../../../shared/native-chat-composer-autocomplete'
|
||||
import type { ComposerAutocomplete } from '../../../../shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
|
||||
function autocomplete(
|
||||
overrides: Partial<Extract<ComposerAutocomplete, { mode: 'slash' }>> = {}
|
||||
|
||||
@@ -7,10 +7,8 @@ import { cn } from '@/lib/utils'
|
||||
import type { SkillSourceKind } from '../../../../shared/skills'
|
||||
import { FilenameFirstPath } from '@/components/file-path-cursor-tooltip'
|
||||
import { FileTypeIcon } from '@/components/FileTypeIcon'
|
||||
import type {
|
||||
ComposerAutocomplete,
|
||||
NativeChatPickerItem
|
||||
} from '../../../../shared/native-chat-composer-autocomplete'
|
||||
import type { ComposerAutocomplete } from '../../../../shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import type { NativeChatPickerItem } from '../../../../shared/native-chat/input/native-chat-picker-items'
|
||||
import type { NativeChatMentionFiles } from './use-native-chat-mention-files'
|
||||
import { LoadingSpinner } from '@/components/LoadingSpinner'
|
||||
import { localizeSlashCommandDescription } from './native-chat-slash-command-descriptions'
|
||||
|
||||
@@ -5,7 +5,7 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import { getScreenSubmitShortcutLabel } from '@/lib/screen-submit-shortcut'
|
||||
import { useUiLanguageRevision } from '@/i18n/use-ui-language-revision'
|
||||
import type { NativeChatFollowUpBehavior } from '../../../../shared/native-chat-follow-up-behavior'
|
||||
import type { NativeChatFollowUpBehavior } from '../../../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type {
|
||||
SessionOptionDescriptor,
|
||||
SessionOptionsSurface
|
||||
|
||||
@@ -7,10 +7,8 @@ import { flushSync } from 'react-dom'
|
||||
import type { useImeEnterGestureOwnership } from '@/lib/ime-composition-keyboard-event'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { useNotificationCardComposerClearance } from '@/lib/notification-card-composer-clearance'
|
||||
import type {
|
||||
ComposerAutocomplete,
|
||||
NativeChatPickerItem
|
||||
} from '../../../../shared/native-chat-composer-autocomplete'
|
||||
import type { ComposerAutocomplete } from '../../../../shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import type { NativeChatPickerItem } from '../../../../shared/native-chat/input/native-chat-picker-items'
|
||||
import { NativeChatMentionMenu, NativeChatPickerMenu } from './NativeChatAutocompleteMenus'
|
||||
import type { NativeChatMentionFiles } from './use-native-chat-mention-files'
|
||||
import { NativeChatComposerActions } from './NativeChatComposerActions'
|
||||
@@ -31,7 +29,7 @@ import type { NativeChatComposerGoalMode } from './use-native-chat-composer-subm
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import { useNativeChatComposerDraftUnsaved } from './use-native-chat-draft-unsaved'
|
||||
import { useLatestHandler } from '@/lib/use-latest-handler'
|
||||
import type { NativeChatFollowUpBehavior } from '../../../../shared/native-chat-follow-up-behavior'
|
||||
import type { NativeChatFollowUpBehavior } from '../../../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
|
||||
function noop(): void {}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { useLocalImageSrc } from '@/components/editor/useLocalImageSrc'
|
||||
import { PanZoomImageDialog } from '@/components/editor/PanZoomImageDialog'
|
||||
import { copyableNativeChatImageSrc, keepPreviewOpenForChatMenu } from './native-chat-image-copy'
|
||||
import { isNativeChatImageAttachmentPath } from './native-chat-image-paste'
|
||||
import { isNativeChatPastedImagePath } from '../../../../shared/native-chat-image-label'
|
||||
import { isNativeChatPastedImagePath } from '../../../../shared/native-chat/native-chat-image-label'
|
||||
import type { NativeChatComposerImageAttachment } from './NativeChatComposerField'
|
||||
import { isAgentSessionAttachmentStorePath } from '../../../../shared/agent-session/agent-session-attachments'
|
||||
import { chatImageAccess } from '@/lib/local-file-access'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { nativeChatAskDismissKey } from '../../../../shared/native-chat-ask-dismiss-key'
|
||||
import { nativeChatAskDismissKey } from '../../../../shared/native-chat/input/native-chat-ask-dismiss-key'
|
||||
import { useCallback, useLayoutEffect, useRef, useState } from 'react'
|
||||
import type { InteractivePromptCard } from '../../../../shared/native-chat-interactive-prompt'
|
||||
import type { InteractivePromptCard } from '../../../../shared/native-chat/input/native-chat-interactive-prompt'
|
||||
import { NativeChatQuestionCard } from './NativeChatQuestionCard'
|
||||
import { NativeChatApprovalCard } from './NativeChatApprovalCard'
|
||||
import type { NativeChatInteractiveSend } from './use-native-chat-interactive-send'
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
import { nativeChatModelDescription } from './native-chat-model-description'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import type { SessionOptionSelectChoice } from '../../../../shared/native-chat/input/native-chat-session-options'
|
||||
import { nativeChatSessionChoiceLabel } from '../../../../shared/native-chat-session-option-labels'
|
||||
import { nativeChatSessionChoiceLabel } from '../../../../shared/native-chat/input/native-chat-session-option-labels'
|
||||
import { sayNativeChatSessionOptionTranslated as say } from './native-chat-session-option-labels-text'
|
||||
import { NativeChatSessionOptionChoiceBody } from './NativeChatSessionOptionChoiceBody'
|
||||
import { NativeChatSessionOptionWriteGroup } from './NativeChatSessionOptionWriteGroup'
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Button } from '@/components/ui/button'
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
|
||||
import { ShortcutKeyCombo } from '@/components/ShortcutKeyCombo'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import type { InteractivePromptCard } from '../../../../shared/native-chat-interactive-prompt'
|
||||
import type { InteractivePromptCard } from '../../../../shared/native-chat/input/native-chat-interactive-prompt'
|
||||
|
||||
/** A prompt card's one collapse affordance; folding or unfolding writes nothing to the agent. */
|
||||
export function NativeChatPromptCollapseToggle({
|
||||
|
||||
@@ -4,7 +4,7 @@ import { act } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { NativeChatQuestionCard } from './NativeChatQuestionCard'
|
||||
import type { AskAnswerSelection } from '../../../../shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../shared/native-chat/input/native-chat-ask-types'
|
||||
import { NATIVE_CHAT_QUESTION_AUTO_ADVANCE_MS } from '../../../../shared/native-chat/input/native-chat-question-auto-advance'
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useRef, useState, type RefObject } from 'react'
|
||||
import { Check, Pencil, X } from 'lucide-react'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { translate } from '@/i18n/i18n'
|
||||
import type { AskAnswerSelection } from '../../../../shared/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../shared/native-chat/input/native-chat-ask-types'
|
||||
import { NativeChatPromptCollapseToggle } from './NativeChatPromptCollapse'
|
||||
import { useNativeChatPromptCardFocus } from './use-native-chat-prompt-card-focus'
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
askConfirmLabel,
|
||||
askTypedText,
|
||||
toggleAskOption
|
||||
} from '../../../../shared/native-chat-ask-card-rules'
|
||||
} from '../../../../shared/native-chat/input/native-chat-ask-card-rules'
|
||||
|
||||
export type NativeChatQuestionCardProps = {
|
||||
prompt: AskPrompt
|
||||
|
||||
@@ -29,7 +29,7 @@ import { shouldClearNativeChatWorkingSuppression } from '../../../../shared/nati
|
||||
import { resolveNativeChatTerminalTurn } from '../../../../shared/native-chat/native-chat-terminal-turn'
|
||||
import { useNativeChatTerminalTurnTiming } from './use-native-chat-terminal-turn-timing'
|
||||
import { launchPromptAsMessage, shouldPruneLaunchPrompt } from './native-chat-pending'
|
||||
import { pendingSendsAsMessages } from '../../../../shared/native-chat-pending-sends'
|
||||
import { pendingSendsAsMessages } from '../../../../shared/native-chat/transcript/native-chat-pending-sends'
|
||||
import { useNativeChatPendingDelivery } from './use-native-chat-pending-delivery'
|
||||
import {
|
||||
appendCommandMarkerCache,
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
nativeChatOptionsPillTitle,
|
||||
nativeChatSessionOptionActionLabel,
|
||||
nativeChatSessionOptionDisabledReason
|
||||
} from '../../../../shared/native-chat-session-option-labels'
|
||||
} from '../../../../shared/native-chat/input/native-chat-session-option-labels'
|
||||
import { sayNativeChatSessionOptionTranslated as say } from './native-chat-session-option-labels-text'
|
||||
import type { NativeChatOptionPickerRequest } from './native-chat-composer-types'
|
||||
import { runSessionOptionSurfaceCall } from './native-chat-session-option-surface-call'
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
nativeChatSessionOptionActionLabel,
|
||||
nativeChatSessionOptionDisabledReason,
|
||||
nativeChatSessionOptionLabel
|
||||
} from '../../../../shared/native-chat-session-option-labels'
|
||||
} from '../../../../shared/native-chat/input/native-chat-session-option-labels'
|
||||
import { sayNativeChatSessionOptionTranslated as say } from './native-chat-session-option-labels-text'
|
||||
import { NativeChatSessionOptionWriteGroup } from './NativeChatSessionOptionWriteGroup'
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@ import { structuredAgentSessionPaneKey } from '../../../../shared/agent-session/
|
||||
import { structuredAgentSessionHostKey } from '../../runtime/structured-agent-session-host-capability'
|
||||
import type { NativeChatStructuredViewProps } from './native-chat-view-types'
|
||||
import type { useStructuredAgentSession } from './use-structured-agent-session'
|
||||
import { nativeChatAskDismissKey } from '../../../../shared/native-chat-ask-dismiss-key'
|
||||
import { nativeChatAskDismissKey } from '../../../../shared/native-chat/input/native-chat-ask-dismiss-key'
|
||||
import { useMemo, useState } from 'react'
|
||||
import type { QueuedMessageCard } from '../../../../shared/agent-session/view/structured-agent-session-queued-cards'
|
||||
import { formatAskAnswer } from '../../../../shared/native-chat-ask-answer'
|
||||
import { nativeChatAnswerSendIntent } from '../../../../shared/native-chat-follow-up-behavior'
|
||||
import { formatAskAnswer } from '../../../../shared/native-chat/input/native-chat-ask-answer'
|
||||
import { nativeChatAnswerSendIntent } from '../../../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatStructuredComposerTransport } from './native-chat-composer-types'
|
||||
import { NativeChatQuestionCard } from './NativeChatQuestionCard'
|
||||
import type { NativeChatLiveSession } from './use-native-chat-live-session'
|
||||
|
||||
@@ -26,7 +26,7 @@ import { useNativeChatRootInputRouting } from './use-native-chat-root-input-rout
|
||||
import { useNativeChatFontSize } from './use-native-chat-font-size'
|
||||
import { useNativeChatFind } from './use-native-chat-find'
|
||||
import { NativeChatFindBar } from './NativeChatFindBar'
|
||||
import { nativeChatQueueFollowUps } from '../../../../shared/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import { LinkActionPopover } from '@/components/link-actions/LinkActionPopover'
|
||||
import { useNativeChatLinkActions } from './use-native-chat-link-actions'
|
||||
import { useNativeChatFileLinkContext } from './use-native-chat-file-link-context'
|
||||
@@ -51,7 +51,7 @@ import {
|
||||
cancelStructuredPrompt,
|
||||
nativeChatStructuredStopControls
|
||||
} from './native-chat-structured-stop-controls'
|
||||
import { chatApprovalFromJournal } from '../../../../shared/native-chat-interactive-prompt'
|
||||
import { chatApprovalFromJournal } from '../../../../shared/native-chat/input/native-chat-interactive-prompt'
|
||||
import { useAppStore } from '../../store'
|
||||
import { structuredAgentLabel } from '@/lib/agent-session/launch/structured-agent-session-launch-label'
|
||||
import { useNativeChatStructuredComposerTransport } from './use-native-chat-structured-composer-transport'
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from '@/components/editor/useLocalImageSrc'
|
||||
import type { RuntimeFileOperationArgs } from '@/runtime/runtime-file-client-types'
|
||||
import { copyableNativeChatImageSrc, keepPreviewOpenForChatMenu } from './native-chat-image-copy'
|
||||
import { isNativeChatPastedImagePath } from '../../../../shared/native-chat-image-label'
|
||||
import { isNativeChatPastedImagePath } from '../../../../shared/native-chat/native-chat-image-label'
|
||||
import { nativeChatImageLabel } from './native-chat-image-label'
|
||||
import { chatImageAccess } from '@/lib/local-file-access'
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
import type { NativeChatMessage } from '../../../../shared/native-chat/native-chat-types'
|
||||
import type { NativeChatStructuredViewProps } from './native-chat-view-types'
|
||||
import type { NativeChatFileLinkContext } from './native-chat-file-link'
|
||||
import { nativeChatMessageCopyText } from '../../../../shared/native-chat-message-copy-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../shared/native-chat/transcript/native-chat-message-copy-text'
|
||||
|
||||
type UsageLimitActions = {
|
||||
account: ReactNode
|
||||
|
||||
@@ -2,9 +2,9 @@ import { subscribeToPtyData } from '../terminal-pane/pty-data-sidecar-subscripti
|
||||
import { isRemoteRuntimePtyId } from '../../../../shared/remote-runtime/remote-runtime-pty-id'
|
||||
import { sendRuntimePtyInput } from '@/runtime/runtime-terminal-inspection'
|
||||
import { subscribeToRuntimeTerminalData } from '@/runtime/runtime-terminal-stream'
|
||||
import { NATIVE_CHAT_SUBMIT } from '../../../../shared/native-chat-paste-bytes'
|
||||
import { NATIVE_CHAT_SUBMIT } from '../../../../shared/native-chat/input/native-chat-paste-bytes'
|
||||
import { stripScrollbackAnsi } from './native-chat-scrape-fallback'
|
||||
import type { ClaudeModelSwitchOutcome } from '../../../../shared/native-chat-session-option-dispatch'
|
||||
import type { ClaudeModelSwitchOutcome } from '../../../../shared/native-chat/input/native-chat-session-option-dispatch'
|
||||
|
||||
const DETECTION_TIMEOUT_MS = 5_000
|
||||
const MAX_OBSERVED_BYTES = 64 * 1024
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { basename } from '@/lib/path'
|
||||
import { isNativeChatKeptPastePath } from './native-chat-image-paste'
|
||||
import { isNativeChatPastedImagePath } from '../../../../shared/native-chat-image-label'
|
||||
import { isNativeChatPastedImagePath } from '../../../../shared/native-chat/native-chat-image-label'
|
||||
import { isAgentSessionAttachmentStorePath } from '../../../../shared/agent-session/agent-session-attachments'
|
||||
import {
|
||||
dirtyScopes,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { NativeChatFollowUpBehavior } from '../../../../shared/native-chat-follow-up-behavior'
|
||||
import type { NativeChatFollowUpBehavior } from '../../../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatComposerImageAttachment } from './NativeChatComposerField'
|
||||
import type { NativeChatStructuredComposerTransport } from './native-chat-composer-types'
|
||||
import { nativeChatImageSendBlock } from './native-chat-image-reattach'
|
||||
|
||||
@@ -19,7 +19,7 @@ import type { NativeChatComposerImageAttachment } from './NativeChatComposerFiel
|
||||
import type { NativeChatAfterStopSend } from './native-chat-composer-target'
|
||||
import type { NativeChatLocalCommandAnswer } from './use-native-chat-local-command-answer'
|
||||
import type { NativeChatRecallSource } from './native-chat-sent-prompt-history'
|
||||
import type { NativeChatSendFollowUp } from '../../../../shared/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
|
||||
export type NativeChatComposerErrorDetail = {
|
||||
/** Error text Orca did not write, shown apart and copyable. */
|
||||
|
||||
@@ -3,7 +3,7 @@ import { renderHook } from '@testing-library/react'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import type { CatalogModel } from '../../../../shared/agent-session/options/agent-session-option-catalog-types'
|
||||
import type { NativeChatMessage } from '../../../../shared/native-chat/native-chat-types'
|
||||
import { createNativeChatPtySessionOptions } from '../../../../shared/native-chat-pty-session-options'
|
||||
import { createNativeChatPtySessionOptions } from '../../../../shared/native-chat/input/native-chat-pty-session-options'
|
||||
import { clearNativeChatSessionOptionCacheForTests } from './native-chat-session-option-cache'
|
||||
import {
|
||||
answerNativeChatLocalCommand,
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { NativeChatImageRefBlock } from '../../../../shared/native-chat/nat
|
||||
import {
|
||||
nativeChatImageLabel as sharedNativeChatImageLabel,
|
||||
type NativeChatImageLabelCopy
|
||||
} from '../../../../shared/native-chat-image-label'
|
||||
} from '../../../../shared/native-chat/native-chat-image-label'
|
||||
|
||||
export function nativeChatImageLabelCopy(): NativeChatImageLabelCopy {
|
||||
return {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { isImageDropPath } from '../terminal-pane/terminal-drop-image-path'
|
||||
import { NATIVE_CHAT_PASTE_FOLDER } from '../../../../shared/native-chat/input/native-chat-paste-folder'
|
||||
import { isNativeChatPastedImagePath } from '../../../../shared/native-chat-image-label'
|
||||
import { isNativeChatPastedImagePath } from '../../../../shared/native-chat/native-chat-image-label'
|
||||
export {
|
||||
getAgentImageHandling,
|
||||
type AgentImageHandling
|
||||
|
||||
@@ -5,11 +5,11 @@ import {
|
||||
buildCodexAskAnswerKeys,
|
||||
formatAskAnswer,
|
||||
hasAskAnswer
|
||||
} from '../../../../shared/native-chat-ask-answer'
|
||||
} from '../../../../shared/native-chat/input/native-chat-ask-answer'
|
||||
import { parseAskFromStatus } from '../../../../shared/native-chat/input/native-chat-ask'
|
||||
import { sayNativeChatApprovalTranslated } from './native-chat-interactive-prompt'
|
||||
import type { AskPrompt } from '../../../../shared/native-chat/input/native-chat-ask-types'
|
||||
import { parseApprovalFromStatus } from '../../../../shared/native-chat-interactive-prompt'
|
||||
import { parseApprovalFromStatus } from '../../../../shared/native-chat/input/native-chat-interactive-prompt'
|
||||
|
||||
const ESC = String.fromCharCode(27)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { translate } from '@/i18n/i18n'
|
||||
import {
|
||||
NATIVE_CHAT_APPROVAL_COPY as COPY,
|
||||
type NativeChatApprovalSay
|
||||
} from '../../../../shared/native-chat-interactive-prompt'
|
||||
} from '../../../../shared/native-chat/input/native-chat-interactive-prompt'
|
||||
|
||||
const PIECES: Record<keyof typeof COPY, (values?: { value0: string }) => string> = {
|
||||
title: (values) => translate('components.native-chat.approval.title', COPY.title, values),
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
clearNativeChatSessionOptionCacheForTests,
|
||||
seedNativeChatAppliedSessionOptions
|
||||
} from './native-chat-session-option-cache'
|
||||
import { createNativeChatPtySessionOptions } from '../../../../shared/native-chat-pty-session-options'
|
||||
import { createNativeChatPtySessionOptions } from '../../../../shared/native-chat/input/native-chat-pty-session-options'
|
||||
import {
|
||||
resolveNativeChatSessionOptionDefaults,
|
||||
updateNativeChatSessionOptionDefaults
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { agentMessageTranscriptText } from '../../../../shared/agent-session/agent-message-display-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../shared/native-chat-message-copy-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../shared/native-chat/transcript/native-chat-message-copy-text'
|
||||
import { nativeChatStoppedBeforeStartLabel } from './native-chat-stopped-before-start-row'
|
||||
import type { NativeChatTranscriptSlot } from './native-chat-transcript-slots'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { AgentStatusEntry, AgentType } from '../../../../shared/agent-status-types'
|
||||
import type { TuiAgent } from '../../../../shared/tui-agent'
|
||||
import { isNativeChatSupportedAgent } from '../../../../shared/native-chat/native-chat-agent-support'
|
||||
import { nativeChatAvailabilityAgent } from '../../../../shared/native-chat-availability'
|
||||
import { nativeChatAvailabilityAgent } from '../../../../shared/native-chat/native-chat-availability'
|
||||
|
||||
export type NativeChatPaneResolutionInput = {
|
||||
/** Composite `${tabId}:${leafId}` key of the active leaf. */
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import type { NativeChatMessage } from '../../../../shared/native-chat/native-chat-types'
|
||||
import type { NativeChatPendingSend } from '../../../../shared/native-chat-pending-sends'
|
||||
import type { NativeChatPendingSend } from '../../../../shared/native-chat/transcript/native-chat-pending-sends'
|
||||
import {
|
||||
appendPendingSendCache,
|
||||
clearPendingSendCacheForTests,
|
||||
|
||||
@@ -3,14 +3,14 @@ import { setBoundedScopeCacheEntry } from '../../../../shared/native-chat/native
|
||||
import {
|
||||
NATIVE_CHAT_PENDING_SEND_LIMIT,
|
||||
type NativeChatPendingSend
|
||||
} from '../../../../shared/native-chat-pending-sends'
|
||||
} from '../../../../shared/native-chat/transcript/native-chat-pending-sends'
|
||||
import type { NativeChatLaunchPrompt } from '@/lib/native-chat-launch-prompt'
|
||||
import {
|
||||
advancedNativeChatUserContentCounts,
|
||||
assignNativeChatPendingOccurrence,
|
||||
matchingNativeChatUserContentCounts,
|
||||
nativeChatPendingContentKey
|
||||
} from '../../../../shared/native-chat-pending-occurrence'
|
||||
} from '../../../../shared/native-chat/transcript/native-chat-pending-occurrence'
|
||||
|
||||
export type NativeChatPendingSendScope = {
|
||||
paneKey: string
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
createNativeChatPtySessionOptions,
|
||||
type CreateNativeChatPtySessionOptionsArgs,
|
||||
type NativeChatPtySessionOptionsSurface
|
||||
} from '../../../../shared/native-chat-pty-session-options'
|
||||
} from '../../../../shared/native-chat/input/native-chat-pty-session-options'
|
||||
|
||||
const discoveredGrok5 = (): ReturnType<typeof mergeDiscoveredAuthoritativeModels> =>
|
||||
mergeDiscoveredAuthoritativeModels(GROK_SESSION_OPTION_CATALOG.models, [
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
buildNativeChatImagePasteBytes,
|
||||
buildNativeChatPasteBytes,
|
||||
NATIVE_CHAT_SUBMIT
|
||||
} from '../../../../shared/native-chat-paste-bytes'
|
||||
} from '../../../../shared/native-chat/input/native-chat-paste-bytes'
|
||||
import { enqueueNativeChatPtySend } from './native-chat-pty-send-queue'
|
||||
import {
|
||||
clearConfirmDurationMs,
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import {
|
||||
import {
|
||||
buildNativeChatPasteBytes,
|
||||
NATIVE_CHAT_SUBMIT
|
||||
} from '../../../../shared/native-chat-paste-bytes'
|
||||
} from '../../../../shared/native-chat/input/native-chat-paste-bytes'
|
||||
import {
|
||||
AGENT_TUI_CLEAR_INPUT_MAX,
|
||||
buildAgentTuiClearInputForText
|
||||
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
import {
|
||||
buildNativeChatPasteBytes,
|
||||
NATIVE_CHAT_SUBMIT
|
||||
} from '../../../../shared/native-chat-paste-bytes'
|
||||
} from '../../../../shared/native-chat/input/native-chat-paste-bytes'
|
||||
|
||||
const PTY = 'pty-1'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { sendNativeChatObservedWrites } from './native-chat-observed-send'
|
||||
import { sendRuntimePtyInput } from '@/runtime/runtime-terminal-inspection'
|
||||
import { sendRuntimePtyInputVerified } from '@/runtime/runtime-terminal-verified-input'
|
||||
import type { AskAnswerKeyGroup } from '../../../../shared/native-chat-ask-answer'
|
||||
import type { AskAnswerKeyGroup } from '../../../../shared/native-chat/input/native-chat-ask-answer'
|
||||
import {
|
||||
clearConfirmDurationMs,
|
||||
clearThenWrite,
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
import {
|
||||
buildNativeChatPasteBytes,
|
||||
NATIVE_CHAT_SUBMIT
|
||||
} from '../../../../shared/native-chat-paste-bytes'
|
||||
} from '../../../../shared/native-chat/input/native-chat-paste-bytes'
|
||||
import {
|
||||
AGENT_TUI_COMMAND_KEY_INTERVAL_MS,
|
||||
typeAgentTuiCommand
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
normalizeImageTranscriptMessages
|
||||
} from '../../../../shared/native-chat/transcript/native-chat-image-transcript-markers'
|
||||
import { isLaunchPromptMessageId } from './native-chat-pending'
|
||||
import { isPendingMessageId } from '../../../../shared/native-chat-pending-sends'
|
||||
import { isPendingMessageId } from '../../../../shared/native-chat/transcript/native-chat-pending-sends'
|
||||
|
||||
/** For the same turn, prefer transcript over hook over scrape. */
|
||||
export type NativeChatSources = {
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import {
|
||||
SESSION_OPTION_APPLY_FAILURE_COPY as EN,
|
||||
type SessionOptionApplyError,
|
||||
type SessionOptionApplyFailureCode
|
||||
} from '../../../../shared/native-chat-session-option-apply-failure'
|
||||
} from '../../../../shared/native-chat/input/native-chat-session-option-apply-failure'
|
||||
|
||||
const COPY: Record<SessionOptionApplyFailureCode, (id: string) => string> = {
|
||||
startOnly: () => translate('components.native-chat.sessionOptionErrors.startOnly', EN.startOnly),
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Re-exported so the many renderer launch paths and their mocks keep one import path.
|
||||
export * from '../../../../shared/native-chat-session-option-cache'
|
||||
export * from '../../../../shared/native-chat/input/native-chat-session-option-cache'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { AgentType } from '../../../../shared/agent-status-types'
|
||||
import { createClaudeCatalogOptions } from '../../../../shared/agent-session/options/agent-session-option-catalog-claude-codex'
|
||||
import type { CatalogModel } from '../../../../shared/agent-session/options/agent-session-option-catalog-types'
|
||||
import { catalogModelsFromModelDiscovery } from '../../../../shared/native-chat-discovered-catalog-models'
|
||||
import { catalogModelsFromModelDiscovery } from '../../../../shared/native-chat/input/native-chat-discovered-catalog-models'
|
||||
import {
|
||||
getCommitMessageModelDiscoveryHostKeyForLocalRuntime,
|
||||
getCommitMessageModelDiscoveryHostKeyForScope,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { AgentType } from '../../../../shared/agent-status-types'
|
||||
import { getAgentSessionOptionCatalog } from '../../../../shared/agent-session/options/agent-session-option-catalog'
|
||||
import type { CatalogModel } from '../../../../shared/agent-session/options/agent-session-option-catalog-types'
|
||||
import { mergeDiscoveredCatalogModels } from '../../../../shared/native-chat-discovered-catalog-models'
|
||||
import { mergeDiscoveredCatalogModels } from '../../../../shared/native-chat/input/native-chat-discovered-catalog-models'
|
||||
|
||||
type CatalogEnrichmentEntry = {
|
||||
state: 'idle' | 'pending' | 'settled'
|
||||
|
||||
@@ -2,7 +2,7 @@ import { translate } from '@/i18n/i18n'
|
||||
import type {
|
||||
NativeChatSessionOptionCopyId,
|
||||
NativeChatSessionOptionSay
|
||||
} from '../../../../shared/native-chat-session-option-labels'
|
||||
} from '../../../../shared/native-chat/input/native-chat-session-option-labels'
|
||||
|
||||
// Literal English defaults: the localization gate only reads string literals at the call site.
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { translate } from '@/i18n/i18n'
|
||||
import { agentSessionThrownFailure } from '../../../../shared/agent-session/failures/agent-session-write-failure'
|
||||
import { RuntimeRpcCallError } from '@/runtime/runtime-rpc-result'
|
||||
import { agentSessionWriteFailureText } from './agent-session-write-notice-text'
|
||||
import { SessionOptionApplyError } from '../../../../shared/native-chat-session-option-apply-failure'
|
||||
import { SessionOptionApplyError } from '../../../../shared/native-chat/input/native-chat-session-option-apply-failure'
|
||||
import { sessionOptionApplyErrorText } from './native-chat-session-option-apply-error-text'
|
||||
|
||||
/** Translate host log errors through the failure table; local errors are already user-facing. */
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
} from '../../../../shared/agent-session/journal/agent-session-journal-types'
|
||||
import type { NativeChatMessage } from '../../../../shared/native-chat/native-chat-types'
|
||||
import type { NativeChatTurnStatus } from '../../../../shared/native-chat/transcript/native-chat-turn-status'
|
||||
import { isNativeChatRowInLiveWorkingTurn } from '../../../../shared/native-chat-live-turn-membership'
|
||||
import { isNativeChatRowInLiveWorkingTurn } from '../../../../shared/native-chat/transcript/native-chat-live-turn-membership'
|
||||
import { nativeChatMessagesWaitingBehindLiveTurn } from '../../../../shared/native-chat/transcript/native-chat-messages-waiting-behind-live-turn'
|
||||
import { nativeChatTurnBarRows } from '../../../../shared/native-chat/transcript/native-chat-turn-grouping'
|
||||
import {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { clearNativeChatSessionOptionCacheForTests } from './native-chat-session-option-cache'
|
||||
import { createNativeChatPtySessionOptions } from '../../../../shared/native-chat-pty-session-options'
|
||||
import { createNativeChatPtySessionOptions } from '../../../../shared/native-chat/input/native-chat-pty-session-options'
|
||||
|
||||
describe('OMP model command capability', () => {
|
||||
beforeEach(() => clearNativeChatSessionOptionCacheForTests())
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { nativeChatQueueFollowUps } from '../../../../shared/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../../../shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import type { AgentJournalItemBody } from '../../../../shared/agent-session/journal/agent-session-journal-types'
|
||||
import { isAdmissibleAgentJournalItemBody } from '../../../../shared/agent-session/journal/agent-session-journal-schemas'
|
||||
|
||||
@@ -5,7 +5,7 @@ import type {
|
||||
NativeChatSessionSkill,
|
||||
SlashCommandSuggestion
|
||||
} from '../../../../shared/native-chat/input/native-chat-slash-commands'
|
||||
import { nativeChatSessionSkills } from '../../../../shared/native-chat-skill-visibility'
|
||||
import { nativeChatSessionSkills } from '../../../../shared/native-chat/input/native-chat-skill-visibility'
|
||||
import { structuredSessionSlashCommands } from '../../../../shared/agent-session/view/structured-agent-session-composer'
|
||||
import { withNativeChatResumeCommand } from './use-native-chat-resume-command'
|
||||
import type { NativeChatStructuredComposerTransport } from './native-chat-composer-types'
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
import { cleanup, fireEvent, render, renderHook, screen } from '@testing-library/react'
|
||||
import { useState, type KeyboardEventHandler } from 'react'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { applyPickerSuggestion } from '../../../../shared/native-chat/input/native-chat-picker-triggers'
|
||||
import {
|
||||
applyPickerSuggestion,
|
||||
deriveComposerAutocomplete,
|
||||
type ComposerAutocomplete
|
||||
} from '../../../../shared/native-chat-composer-autocomplete'
|
||||
} from '../../../../shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import { getNativeChatAgentProfile } from '../../../../shared/native-chat/native-chat-agent-profiles'
|
||||
import { useNativeChatRecallPosition } from './use-native-chat-composer-recall'
|
||||
import type { NativeChatMessage } from '../../../../shared/native-chat/native-chat-types'
|
||||
|
||||
@@ -5,10 +5,8 @@ import {
|
||||
type KeyboardEventHandler,
|
||||
type SetStateAction
|
||||
} from 'react'
|
||||
import type {
|
||||
ComposerAutocomplete,
|
||||
NativeChatPickerItem
|
||||
} from '../../../../shared/native-chat-composer-autocomplete'
|
||||
import type { ComposerAutocomplete } from '../../../../shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import type { NativeChatPickerItem } from '../../../../shared/native-chat/input/native-chat-picker-items'
|
||||
import { isMacPlatform } from './native-chat-shortcut'
|
||||
import type { NativeChatMentionFiles } from './use-native-chat-mention-files'
|
||||
import type { NativeChatComposerSendIntent } from './native-chat-composer-types'
|
||||
|
||||
@@ -5,9 +5,9 @@ import { useMemo } from 'react'
|
||||
import { useAppStore } from '../../store'
|
||||
import type { AskPrompt } from '../../../../shared/native-chat/input/native-chat-ask-types'
|
||||
import type { NativeChatMessage } from '../../../../shared/native-chat/native-chat-types'
|
||||
import { resolveNativeChatInteractivePromptCard } from '../../../../shared/native-chat-interactive-prompt'
|
||||
import { resolveNativeChatInteractivePromptCard } from '../../../../shared/native-chat/input/native-chat-interactive-prompt'
|
||||
import { sayNativeChatApprovalTranslated } from './native-chat-interactive-prompt'
|
||||
import type { InteractivePromptCard } from '../../../../shared/native-chat-interactive-prompt'
|
||||
import type { InteractivePromptCard } from '../../../../shared/native-chat/input/native-chat-interactive-prompt'
|
||||
|
||||
export function useNativeChatInteractivePromptCard({
|
||||
paneKey,
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
formatAskAnswer,
|
||||
hasAskAnswer,
|
||||
type AskAnswerSelection
|
||||
} from '../../../../shared/native-chat-ask-answer'
|
||||
} from '../../../../shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../shared/native-chat/input/native-chat-ask-types'
|
||||
import {
|
||||
sendNativeChatAskAnswer,
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
launchDraftResolvedByTranscript,
|
||||
nativeChatLaunchDraftTurnBaseline,
|
||||
type NativeChatLaunchDraftTurnBaseline
|
||||
} from '../../../../shared/native-chat-launch-draft-resolution'
|
||||
} from '../../../../shared/native-chat/transcript/native-chat-launch-draft-resolution'
|
||||
import {
|
||||
isNativeChatTranscriptUnsettled,
|
||||
type ReadState
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user