mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
refactor(native-chat): group transcript and input modules by owner (#42362)
This commit is contained in:
@@ -25,7 +25,7 @@ const refs = {
|
||||
const entry = (ref) => `
|
||||
export { foldToolMessages as fold } from '${ref ? './src/shared/native-chat-tool-fold' : './src/shared/native-chat/tools/native-chat-tool-fold'}'
|
||||
import { createNativeChatMessageListProjection } from '${ref ? './src/renderer/src/components/native-chat/native-chat-message-list-projection' : './src/renderer/src/components/native-chat/conversation/projection/native-chat-message-list-projection'}'
|
||||
import { deriveNativeChatRowContent } from '${ref ? './src/shared/native-chat-row-content' : './src/shared/native-chat/transcript/native-chat-row-content'}'
|
||||
import { deriveNativeChatRowContent } from '${ref ? './src/shared/native-chat-row-content' : './src/shared/native-chat/transcript/row-content/native-chat-row-content'}'
|
||||
import { pairNativeChatToolResults } from '${ref ? './src/shared/native-chat-tool-pairing' : './src/shared/native-chat/tools/native-chat-tool-pairing'}'
|
||||
export function createPipeline() {
|
||||
const project = createNativeChatMessageListProjection()
|
||||
|
||||
@@ -14,7 +14,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/input/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../src/shared/native-chat/input/questions/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 }
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Activity, useCallback, useLayoutEffect, useMemo, useRef, useState } fro
|
||||
import { StyleSheet, View } from 'react-native'
|
||||
import { MobileNativeChatView, type MobileNativeChatInputLockReason } from './MobileNativeChatView'
|
||||
import { useMobileNativeChatProjection } from './transcript/use-mobile-native-chat-projection'
|
||||
import { nativeChatDockedTaskList } from '../../../../src/shared/native-chat/input/native-chat-task-list-state'
|
||||
import { nativeChatDockedTaskList } from '../../../../src/shared/native-chat/input/task-lists/native-chat-task-list-state'
|
||||
import type { MobileNativeChatImageAttachments } from './composer/use-mobile-native-chat-image-attachments'
|
||||
import type { MobileNativeChatController } from './mobile-native-chat-controller-contract'
|
||||
import type { MobileNativeChatStructuredComposer } from './composer/mobile-native-chat-structured-composer'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../src/shared/native-chat/input/composer/native-chat-picker-items'
|
||||
import { MobileStateView } from '../../components/MobileStateView'
|
||||
import { useCallback, useMemo, type ComponentProps } from 'react'
|
||||
import { nativeChatTaskListPredecessors } from '../../../../src/shared/native-chat/input/native-chat-task-list-history'
|
||||
import { nativeChatTaskListPredecessors } from '../../../../src/shared/native-chat/input/task-lists/native-chat-task-list-history'
|
||||
import {
|
||||
MobileNativeChatDisclosureContext,
|
||||
useMobileNativeChatDisclosures
|
||||
@@ -14,8 +14,8 @@ import type { NativeChatMessage } from '../../../../src/shared/native-chat/nativ
|
||||
import type {
|
||||
NativeChatLiveTurnIndicator,
|
||||
NativeChatSettledTurns
|
||||
} from '../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatTurnJournal } from '../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
} from '../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import type { NativeChatTurnJournal } from '../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import type { NativeChatResolvedPrompt } from '../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import type { NativeChatContextUsageSummary } from '../../../../src/shared/native-chat/native-chat-context-usage-summary'
|
||||
import { useMobileTranslation } from '../../i18n/use-mobile-translation'
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import type { AgentSessionSlashCommand } from '../../../../../src/shared/agent-session/agent-session-wire'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import type { RpcClient } from '../../../transport/rpc/rpc-client-contract'
|
||||
import type { StructuredAgentSessionHostSupport } from './mobile-structured-agent-session-host-support'
|
||||
import type {
|
||||
@@ -10,7 +10,7 @@ import type { MobileNativeChatVisualSource } from '../visual/mobile-native-chat-
|
||||
import type { MobileChatPermission } from '../input/mobile-native-chat-permission'
|
||||
import type { MobileChatQuestion } from '../input/mobile-native-chat-question'
|
||||
import type { MobileNativeChatSession } from '../use-mobile-native-chat-session'
|
||||
import type { NativeChatLiveTurnIndicator } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatLiveTurnIndicator } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import type { NativeChatResolvedPrompt } from '../../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import type { useMobileStructuredAgentOptions } from '../input/use-mobile-structured-agent-options'
|
||||
import type { useMobileStructuredAgentTurnTiming } from '../transcript/use-mobile-structured-agent-turn-timing'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getNativeChatAgentProfile } from '../../../../../src/shared/native-chat/native-chat-agent-profiles'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import {
|
||||
recordMobileNativeChatSkillPick,
|
||||
useMobileNativeChatDraft
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
focusMobileNativeChatTextDestination,
|
||||
pruneMobileNativeChatDraftSkills
|
||||
} from './mobile-native-chat-draft-inputs'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/composer/native-chat-picker-items'
|
||||
import { MobileNativeChatComposerAllocation } from './MobileNativeChatComposerAllocation'
|
||||
import { useEffect, useLayoutEffect, useRef, useState } from 'react'
|
||||
import { Keyboard, View, type HostInstance, type TextInputInstance } from 'react-native'
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { RefObject } from 'react'
|
||||
import { MobileNativeChatComposerMenuLayer } from './MobileNativeChatComposerMenuLayer'
|
||||
import { Pressable, ScrollView, StyleSheet, Text, View, type HostInstance } from 'react-native'
|
||||
import { FileText, Package, Terminal } from 'lucide-react-native'
|
||||
import type { NativeChatPickerItem } from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import type { NativeChatPickerItem } from '../../../../../src/shared/native-chat/input/composer/native-chat-picker-items'
|
||||
import { colors, radii, spacing, typography } from '../../../theme/mobile-theme'
|
||||
import { themedStyleSheet } from '../../../theme/themed-styles'
|
||||
import { useMobileColorScheme } from '../../../theme/use-mobile-color-scheme'
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { RefObject } from 'react'
|
||||
import type { TextInputInstance } from 'react-native'
|
||||
import { isStructuredAgentSessionHostCommand } from '../../../../../src/shared/agent-session/view/structured-agent-session-composer'
|
||||
import { agentSessionInteractionCommand } from '../../../../../src/shared/agent-session/options/permissions/agent-session-interaction-mode'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import type { SessionOptionDescriptor } from '../../../../../src/shared/native-chat/input/native-chat-session-options'
|
||||
import { MobileNativeChatStopButton } from '../input/MobileNativeChatStopButton'
|
||||
import { MobileNativeChatControlSwap } from '../input/mobile-native-chat-control-swap'
|
||||
|
||||
@@ -4,8 +4,8 @@ import { CornerDownRight, ListEnd } from 'lucide-react-native'
|
||||
import type {
|
||||
NativeChatFollowUpBehavior,
|
||||
NativeChatSendFollowUp
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSteerChordPreview } from '../../../../../src/shared/native-chat/input/use-native-chat-steer-chord-preview'
|
||||
} from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSteerChordPreview } from '../../../../../src/shared/native-chat/input/composer/use-native-chat-steer-chord-preview'
|
||||
import { ActionSheetModal } from '../../../components/ActionSheetModal'
|
||||
import { ComposerSendButton } from '../../../components/composer-input/ComposerSendButton'
|
||||
import {
|
||||
|
||||
@@ -5,20 +5,20 @@ import {
|
||||
getNativeChatAgentProfile,
|
||||
type NativeChatAgentProfile
|
||||
} from '../../../../../src/shared/native-chat/native-chat-agent-profiles'
|
||||
import { nativeChatPickerScannedSkills } from '../../../../../src/shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import { nativeChatPickerScannedSkills } from '../../../../../src/shared/native-chat/input/composer/native-chat-composer-autocomplete'
|
||||
import {
|
||||
buildNativeChatPickerItems,
|
||||
type NativeChatPickerItem,
|
||||
type NativeChatSkillDiscoverySnapshot
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
} from '../../../../../src/shared/native-chat/input/composer/native-chat-picker-items'
|
||||
import {
|
||||
nativeChatPickerCommands,
|
||||
nativeChatSessionSkills
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-skill-visibility'
|
||||
} from '../../../../../src/shared/native-chat/input/commands/native-chat-skill-visibility'
|
||||
import type {
|
||||
NativeChatSessionSkill,
|
||||
SlashCommandSuggestion
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-slash-commands'
|
||||
} from '../../../../../src/shared/native-chat/input/commands/native-chat-slash-commands'
|
||||
import { structuredSessionSlashCommands } from '../../../../../src/shared/agent-session/view/structured-agent-session-composer'
|
||||
|
||||
// Why: the menu is a plain ScrollView right above a streaming transcript, so it mounts a bounded
|
||||
|
||||
@@ -2,8 +2,8 @@ import {
|
||||
clipboardEventImageFile,
|
||||
clipboardEventPromptText,
|
||||
type ClipboardEventDataLike
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-clipboard-event'
|
||||
import { isNativeChatLongPaste } from '../../../../../src/shared/native-chat/input/native-chat-long-paste'
|
||||
} from '../../../../../src/shared/native-chat/input/composer/native-chat-clipboard-event'
|
||||
import { isNativeChatLongPaste } from '../../../../../src/shared/native-chat/input/composer/native-chat-long-paste'
|
||||
import type { ClipboardReader } from '../../../platform/clipboard/clipboard'
|
||||
import type { PickedMobileImage } from '../../../platform/media-picking/media-picker-contract'
|
||||
import { encodeBase64Bytes } from '../../../transport/encryption/base64-byte-codec'
|
||||
|
||||
@@ -8,9 +8,9 @@ import {
|
||||
normalizeImageTranscriptMessages,
|
||||
normalizeNativeChatUserText,
|
||||
normalizedNativeChatUserMessageText
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-image-transcript-markers'
|
||||
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'
|
||||
} from '../../../../../src/shared/native-chat/transcript/images/native-chat-image-transcript-markers'
|
||||
import { nativeChatPendingOccurrence } from '../../../../../src/shared/native-chat/transcript/pending-sends/native-chat-pending-occurrence'
|
||||
import type { NativeChatPendingSend } from '../../../../../src/shared/native-chat/transcript/pending-sends/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/input/native-chat-paste-bytes'
|
||||
import { buildNativeChatImagePasteBytes } from '../../../../../src/shared/native-chat/input/composer/native-chat-paste-bytes'
|
||||
import {
|
||||
MOBILE_NATIVE_CHAT_MIN_WRITE_TIMEOUT_MS,
|
||||
openMobileNativeChatSendBudget,
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
import {
|
||||
classifyNativeChatSend,
|
||||
type NativeChatSendClassification
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-slash-commands'
|
||||
} from '../../../../../src/shared/native-chat/input/commands/native-chat-slash-commands'
|
||||
|
||||
// Terminal mobile chat lacks desktop-owned command answers and reply rows.
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { createElement, useState, type ReactNode } from 'react'
|
||||
import { Goal } from 'lucide-react-native'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import { isBareStructuredAgentSessionGoalCommand } from '../../../../../src/shared/agent-session/view/structured-agent-session-composer'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import type { MobileStructuredThreadGoal } from '../input/use-mobile-structured-thread-goal'
|
||||
|
||||
@@ -4,8 +4,8 @@ import {
|
||||
applyMentionSuggestion,
|
||||
deriveComposerAutocomplete,
|
||||
isSkillPickerTriggered
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-composer-autocomplete'
|
||||
import { applyPickerSuggestion } from '../../../../../src/shared/native-chat/input/native-chat-picker-triggers'
|
||||
} from '../../../../../src/shared/native-chat/input/composer/native-chat-composer-autocomplete'
|
||||
import { applyPickerSuggestion } from '../../../../../src/shared/native-chat/input/composer/native-chat-picker-triggers'
|
||||
import {
|
||||
structuredAgentSessionModePickDraft,
|
||||
structuredAgentSessionPickEntersGoalMode
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
agentSessionInteractionCommand,
|
||||
type AgentSessionInteractionMode
|
||||
} from '../../../../../src/shared/agent-session/options/permissions/agent-session-interaction-mode'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/composer/native-chat-picker-items'
|
||||
import {
|
||||
boundedMenuItems,
|
||||
draftAfterSkillEdit,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { createElement, Fragment, useMemo, useState, type ReactNode, type RefObj
|
||||
import type { TextInputInstance } from 'react-native'
|
||||
import { MobileNativeChatBackgroundTasks } from '../input/MobileNativeChatBackgroundTasks'
|
||||
import { MobileNativeChatDockedTaskList } from '../input/MobileNativeChatDockedTaskList'
|
||||
import type { NativeChatTaskList } from '../../../../../src/shared/native-chat/input/native-chat-task-list'
|
||||
import type { NativeChatTaskList } from '../../../../../src/shared/native-chat/input/task-lists/native-chat-task-list'
|
||||
import {
|
||||
MobileNativeChatQueuedMessages,
|
||||
mobileNativeChatChordHeadId,
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
import {
|
||||
normalizeImageTranscriptMessages,
|
||||
normalizeNativeChatUserText as normalizeReconcileText
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-image-transcript-markers'
|
||||
} from '../../../../../src/shared/native-chat/transcript/images/native-chat-image-transcript-markers'
|
||||
import { useMobileNativeChatUnconfirmedSends } from './use-mobile-native-chat-unconfirmed-sends'
|
||||
import {
|
||||
appendMobileNativeChatPending,
|
||||
|
||||
@@ -4,8 +4,8 @@ import {
|
||||
launchDraftResolvedByTranscript,
|
||||
nativeChatLaunchDraftTurnBaseline,
|
||||
type NativeChatLaunchDraftTurnBaseline
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-launch-draft-resolution'
|
||||
import { normalizedNativeChatUserMessageText } from '../../../../../src/shared/native-chat/transcript/native-chat-image-transcript-markers'
|
||||
} from '../../../../../src/shared/native-chat/transcript/pending-sends/native-chat-launch-draft-resolution'
|
||||
import { normalizedNativeChatUserMessageText } from '../../../../../src/shared/native-chat/transcript/images/native-chat-image-transcript-markers'
|
||||
import { mobileNativeChatLaunchDraftSeeds } from './mobile-native-chat-draft-store'
|
||||
import { mobileNativeChatDraftDestination } from './mobile-native-chat-draft-inputs'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useCallback, useMemo, useState } from 'react'
|
||||
import { useQueryClient } from '@tanstack/react-query'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import { isNativeChatSkillForAgent } from '../../../../../src/shared/native-chat/input/native-chat-skill-visibility'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/composer/native-chat-picker-items'
|
||||
import { isNativeChatSkillForAgent } from '../../../../../src/shared/native-chat/input/commands/native-chat-skill-visibility'
|
||||
import type { RpcClient } from '../../../transport/rpc/rpc-client-contract'
|
||||
import { defineHostQuery, useHostQuery } from '../../../query/host-query'
|
||||
import { hostQueryKey } from '../../../query/host-query-key'
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import type { RefObject } from 'react'
|
||||
import type { TextInputInstance } from 'react-native'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSteerChordPreview } from '../../../../../src/shared/native-chat/input/use-native-chat-steer-chord-preview'
|
||||
import type { NativeChatSendFollowUp } from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSteerChordPreview } from '../../../../../src/shared/native-chat/input/composer/use-native-chat-steer-chord-preview'
|
||||
import type { MobileNativeChatSteerHead } from './use-mobile-native-chat-composer-tray'
|
||||
|
||||
export type MobileNativeChatSteerChordPreviewInput = {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { primaryModifierKey } from '../../../platform/keyboard/primary-modifier-key'
|
||||
import { createNativeChatSteerChordPreviewHook } from '../../../../../src/shared/native-chat/input/use-native-chat-steer-chord-preview'
|
||||
import { createNativeChatSteerChordPreviewHook } from '../../../../../src/shared/native-chat/input/composer/use-native-chat-steer-chord-preview'
|
||||
import type { MobileNativeChatSteerChordPreviewInput } from './use-mobile-native-chat-steer-chord-preview'
|
||||
|
||||
const useNativeChatSteerChordPreview = createNativeChatSteerChordPreviewHook({
|
||||
|
||||
@@ -7,7 +7,7 @@ import { isLogicalClientCutoverError } from '../../../transport/connection/logic
|
||||
import { nativeChatTerminalWrite } from '../../../terminal/session/mobile-session-terminal-operations'
|
||||
import { openMobileNativeChatSendBudget } from './mobile-native-chat-send'
|
||||
import { nativeChatStopSendsSecondEscape } from '../../../../../src/shared/native-chat/native-chat-agent-support'
|
||||
import { NATIVE_CHAT_QUESTION_STEP_MS } from '../../../../../src/shared/native-chat/input/native-chat-answer-stepping'
|
||||
import { NATIVE_CHAT_QUESTION_STEP_MS } from '../../../../../src/shared/native-chat/input/questions/native-chat-answer-stepping'
|
||||
|
||||
// Resolves false only when no Escape could have landed, so the chat may offer Stop again.
|
||||
export function useMobileNativeChatStop(args: {
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import {
|
||||
} from './mobile-native-chat-in-flight-sends'
|
||||
import type { MobileStructuredSends } from './use-mobile-structured-sends'
|
||||
import { structuredSessionOperationId } from '../agent-session/structured-session-operation-id'
|
||||
import { isSlashCommandDraft } from '../../../../../src/shared/native-chat/input/native-chat-slash-commands'
|
||||
import { isSlashCommandDraft } from '../../../../../src/shared/native-chat/input/commands/native-chat-slash-commands'
|
||||
import { UNCONFIRMED_SEND_RESTORED_MESSAGE } from './use-mobile-native-chat-unconfirmed-sends'
|
||||
|
||||
export function useMobileStructuredNativeChatSendBridge(args: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createElement, type ReactNode } from 'react'
|
||||
import { act, create, type ReactTestInstance, type ReactTestRenderer } from 'react-test-renderer'
|
||||
import { afterEach, expect, it, vi, type Mock } from 'vitest'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import { MobileNativeChatAsk } from './MobileNativeChatAsk'
|
||||
|
||||
vi.mock('react-native', () => ({
|
||||
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
type NativeChatAnswerOperation,
|
||||
type NativeChatAnswerSource,
|
||||
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'
|
||||
} from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import type { AgentJournalFreeTextInput } from '../../../../../src/shared/agent-session/journal/agent-session-journal-types'
|
||||
import {
|
||||
askAcceptsEmptyAnswer,
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
askConfirmLabel,
|
||||
askTypedText,
|
||||
toggleAskOption
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-ask-card-rules'
|
||||
} from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-card-rules'
|
||||
import { colors, pressedStyle } from '../../../theme/mobile-theme'
|
||||
import { useMobileColorScheme } from '../../../theme/use-mobile-color-scheme'
|
||||
import type { Translate } from '../../../i18n/mobile-i18n'
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
nativeChatCompletedTaskCount,
|
||||
nativeChatTaskLabel,
|
||||
type NativeChatTaskList
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-task-list'
|
||||
} from '../../../../../src/shared/native-chat/input/task-lists/native-chat-task-list'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import { colors, spacing, typography } from '../../../theme/mobile-theme'
|
||||
import { themedStyleSheet } from '../../../theme/themed-styles'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useMemo } from 'react'
|
||||
import { Pressable, ScrollView, Text, View } from 'react-native'
|
||||
import type { AskQuestion } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { AskQuestion } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import { KeyedBottomDrawer } from '../../../components/bottom-drawer/keyed-bottom-drawer'
|
||||
import { SheetHeader } from '../../../components/nav-bar/SheetHeader'
|
||||
import { SheetPrimaryButton } from '../../../components/SheetPrimaryButton'
|
||||
|
||||
@@ -18,8 +18,8 @@ import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import type {
|
||||
AskAnswerSelection,
|
||||
NativeChatAnswerSource
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
} from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import { MobileNativeChatAsk } from './MobileNativeChatAsk'
|
||||
import { MobileNativeChatPermission } from './MobileNativeChatPermission'
|
||||
import type { MobileChatPermission } from './mobile-native-chat-permission'
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
nativeChatOptionValuesLabel,
|
||||
nativeChatSessionOptionDisabledReason,
|
||||
nativeChatSessionOptionLabel
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/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 {
|
||||
@@ -44,7 +44,7 @@ import {
|
||||
SessionOptionSegments,
|
||||
showsSessionOptionAsSegments
|
||||
} from './MobileNativeChatSessionOptionSegments'
|
||||
import { sortNativeChatSessionOptions } from '../../../../../src/shared/native-chat/input/native-chat-session-option-snapshot'
|
||||
import { sortNativeChatSessionOptions } from '../../../../../src/shared/native-chat/input/session-options/native-chat-session-option-snapshot'
|
||||
import {
|
||||
AGENT_CHAT_PERMISSION_MODE_ICON_NAMES,
|
||||
AGENT_CHAT_PERMISSION_MODE_OPTION_ID,
|
||||
|
||||
@@ -16,11 +16,11 @@ import {
|
||||
nativeChatSessionChoiceLabel,
|
||||
nativeChatSessionOptionActionLabel,
|
||||
nativeChatSessionOptionLabel
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/native-chat-session-option-labels'
|
||||
import {
|
||||
loneFastTier,
|
||||
speedButtonTiers
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-speed-tiers'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/native-chat-session-speed-tiers'
|
||||
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/input/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/native-chat-session-option-labels'
|
||||
import { sayMobileNativeChatSessionOption as say } from './native-chat-session-option-copy'
|
||||
import { SessionOptionCaption } from './MobileNativeChatSessionOptionRows'
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
nativeChatTaskLabel,
|
||||
type NativeChatTask,
|
||||
type NativeChatTaskList as TaskList
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-task-list'
|
||||
} from '../../../../../src/shared/native-chat/input/task-lists/native-chat-task-list'
|
||||
import { nativeChatTaskListCopy } from './native-chat-task-list-copy'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import { colors, pressedStyle } from '../../../theme/mobile-theme'
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { SessionOptionDescriptor } from '../../../../../src/shared/native-c
|
||||
import {
|
||||
nativeChatSessionChoiceLabel,
|
||||
selectedNativeChatChoice
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/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 { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../../src/shared/native-chat/input/composer/native-chat-picker-items'
|
||||
import { createContext } from 'react'
|
||||
import type { MobileNativeChatStructuredComposer } from '../composer/mobile-native-chat-structured-composer'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { stripSentImagePromptMarkers } from '../../../../../src/shared/native-chat/transcript/native-chat-image-transcript-markers'
|
||||
import { stripSentImagePromptMarkers } from '../../../../../src/shared/native-chat/transcript/images/native-chat-sent-image-prompt-markers'
|
||||
import type { AgentSessionFailureFact } from '../../../../../src/shared/agent-session/failures/agent-session-failure'
|
||||
import { mobileAgentSessionWriteNoticeText } from '../agent-session/agent-session-write-notice-copy'
|
||||
import type { AgentJournalSubmission } from '../../../../../src/shared/agent-session/journal/agent-session-journal-types'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { NativeChatSessionOptionSay } from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
import type { NativeChatSessionOptionSay } from '../../../../../src/shared/native-chat/input/session-options/native-chat-session-option-labels'
|
||||
import { translate } from '../../../i18n/mobile-i18n'
|
||||
|
||||
export const sayMobileNativeChatSessionOption: NativeChatSessionOptionSay = (id, values) => {
|
||||
|
||||
@@ -4,11 +4,11 @@ import {
|
||||
buildCodexAskAnswerKeys,
|
||||
formatAskAnswer,
|
||||
hasAskAnswer
|
||||
} 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'
|
||||
} from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-answer'
|
||||
import type { AskAnswerSelection } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import type { RpcClient } from '../../../transport/rpc/rpc-client-contract'
|
||||
import { NATIVE_CHAT_QUESTION_STEP_MS } from '../../../../../src/shared/native-chat/input/native-chat-answer-stepping'
|
||||
import { NATIVE_CHAT_QUESTION_STEP_MS } from '../../../../../src/shared/native-chat/input/questions/native-chat-answer-stepping'
|
||||
import {
|
||||
openMobileNativeChatSendBudget,
|
||||
sendMobileNativeChatMessageWithOutcome
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
resolveNativeChatTranscriptAgent,
|
||||
shouldStepNativeChatAskAnswer
|
||||
} from '../../../../../src/shared/native-chat/native-chat-agent-support'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat/input/native-chat-paste-bytes'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat/input/composer/native-chat-paste-bytes'
|
||||
|
||||
export type MobileNativeChatAnswerSend = {
|
||||
answerAsk: (prompt: AskPrompt, selections: AskAnswerSelection[]) => Promise<boolean>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useEffect, useRef } from 'react'
|
||||
import { NATIVE_CHAT_QUESTION_AUTO_ADVANCE_MS } from '../../../../../src/shared/native-chat/input/native-chat-question-auto-advance'
|
||||
import { NATIVE_CHAT_QUESTION_AUTO_ADVANCE_MS } from '../../../../../src/shared/native-chat/input/questions/native-chat-question-auto-advance'
|
||||
|
||||
/** Mirrors desktop's useNativeChatQuestionAutoAdvance; shared code cannot import this app's React. */
|
||||
export function useMobileNativeChatAskAutoAdvance(disabled = false): {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useMemo } from 'react'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import { useMobileNativeChatPromptDismiss } from './use-mobile-native-chat-prompt-dismiss'
|
||||
|
||||
// Keep answered/collapsed asks across view toggles and remounts until an observed prompt supersedes them.
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { CatalogModel } from '../../../../../src/shared/agent-session/optio
|
||||
import {
|
||||
catalogModelsFromModelDiscovery,
|
||||
mergeDiscoveredCatalogModels
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-discovered-catalog-models'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/native-chat-discovered-catalog-models'
|
||||
import { defineRpcOperation, runRpcOperation } from '../../../transport/rpc/rpc-operation'
|
||||
|
||||
const discoveredModel = z.object({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useMobileAsyncQuestionHides } from './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/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import type { AskAnswerSelection } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-answer'
|
||||
import type { AgentStatusEntry } from '../../../../../src/shared/agent-status/contracts/agent-status-types'
|
||||
import type { MobileNativeChatController } from '../mobile-native-chat-controller-contract'
|
||||
import type { useMobileBridgeChatPromptWrites } from './use-mobile-bridge-chat-prompt-writes'
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
nativeChatCardDismissKey,
|
||||
nativeChatPromptDismissalMatches,
|
||||
nativeChatPromptOccurrenceKey
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-prompt-dismiss-key'
|
||||
} from '../../../../../src/shared/native-chat/input/approvals/native-chat-prompt-dismiss-key'
|
||||
import {
|
||||
mobileNativeChatPromptDismissals as dismissals,
|
||||
type MobileNativeChatPromptDismissal
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useEffect, type RefObject } from 'react'
|
||||
import type { TextInputInstance } from 'react-native'
|
||||
import { isNewerApprovalSubject } from '../../../../../src/shared/agent-session/agent-session-approval-subject'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import type { MobileChatPermission } from './mobile-native-chat-permission'
|
||||
|
||||
// As on desktop a shown card replaces the composer (kept mounted for its draft), except while dictation runs or lands
|
||||
|
||||
@@ -4,12 +4,12 @@ import {
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-ask'
|
||||
import { useMemo } from 'react'
|
||||
import type { AgentStatusEntry } from '../../../../../src/shared/agent-status/contracts/agent-status-types'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import {
|
||||
resolveNativeChatInteractivePromptCard,
|
||||
type ChatApproval
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-interactive-prompt'
|
||||
import { nativeChatPromptWaitStartedAt } from '../../../../../src/shared/native-chat/input/native-chat-prompt-dismiss-key'
|
||||
import { nativeChatPromptWaitStartedAt } from '../../../../../src/shared/native-chat/input/approvals/native-chat-prompt-dismiss-key'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import {
|
||||
useMobileStructuredAsyncQuestion,
|
||||
|
||||
@@ -23,15 +23,15 @@ import type { MobileNativeChatSendOutcome } from '../composer/mobile-native-chat
|
||||
import {
|
||||
createNativeChatPtySessionOptions,
|
||||
type NativeChatPtySessionOptionsSurface
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-pty-session-options'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/native-chat-pty-session-options'
|
||||
import {
|
||||
readNativeChatSessionOptionCache,
|
||||
writeNativeChatSessionOptionCache
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-cache'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/native-chat-session-option-cache'
|
||||
import {
|
||||
createNativeChatSessionOptionRecord,
|
||||
matchNativeChatCatalogModelId
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-state'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/native-chat-session-option-state'
|
||||
import { setBoundedScopeCacheEntry } from '../../../../../src/shared/native-chat/native-chat-scope-cache'
|
||||
import { sayMobileNativeChatSessionOption } from './native-chat-session-option-copy'
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@ import { useCallback } from 'react'
|
||||
import {
|
||||
formatAskAnswer,
|
||||
type AskAnswerSelection
|
||||
} 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'
|
||||
} from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-answer'
|
||||
import { nativeChatAnswerSendIntent } from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import type { AskPrompt } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import type { QueuedMessageCard } from '../../../../../src/shared/agent-session/view/structured-agent-session-queued-cards'
|
||||
import type { useMobileStructuredAgentSession } from '../agent-session/use-mobile-structured-agent-session'
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { SessionOptionDescriptor } from '../../../../../src/shared/native-c
|
||||
import {
|
||||
nativeChatModelPillLabel,
|
||||
nativeChatSessionOptionLabel
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-session-option-labels'
|
||||
} from '../../../../../src/shared/native-chat/input/session-options/native-chat-session-option-labels'
|
||||
import { translate } from '../../../i18n/mobile-i18n'
|
||||
import { mobileSessionOptionSummaryValue } from './mobile-native-chat-session-option-labels'
|
||||
import { sayMobileNativeChatSessionOption as say } from './native-chat-session-option-copy'
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../src/shared/native-chat/input/native-chat-picker-items'
|
||||
import type { NativeChatSkillDiscoverySnapshot } from '../../../../src/shared/native-chat/input/composer/native-chat-picker-items'
|
||||
import type { AgentSessionRewindSurface } from '../../../../src/shared/agent-session/lifecycle/rewind/agent-session-rewind-request'
|
||||
import type { NativeChatSendFollowUp } from '../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import type { NativeChatSendFollowUp } from '../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import type { StructuredMobileSendAttachment } from './composer/use-mobile-structured-send-with-outcome'
|
||||
import type { MobileSessionView } from '../../storage/session-view-preferences'
|
||||
import type { Dispatch, MutableRefObject, SetStateAction } from 'react'
|
||||
import type {
|
||||
AskAnswerSelection,
|
||||
NativeChatAnswerSource
|
||||
} from '../../../../src/shared/native-chat/input/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../src/shared/native-chat/input/native-chat-ask-types'
|
||||
} from '../../../../src/shared/native-chat/input/questions/native-chat-ask-answer'
|
||||
import type { AskPrompt } from '../../../../src/shared/native-chat/input/questions/native-chat-ask-types'
|
||||
import type { MobileChatPermission } from './input/mobile-native-chat-permission'
|
||||
import type { MobileChatQuestion } from './input/mobile-native-chat-question'
|
||||
import type {
|
||||
NativeChatLiveTurnIndicator,
|
||||
NativeChatSettledTurns
|
||||
} from '../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
} from '../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import type { AgentSessionOptionsResult } from '../../../../src/shared/agent-session/options/protocol/agent-session-options-result'
|
||||
import type { NativeChatTurnJournal } from '../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import type { NativeChatTurnJournal } from '../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import type { NativeChatAwaitingInput } from '../../../../src/shared/native-chat/native-chat-terminal-turn'
|
||||
import type { NativeChatResolvedPrompt } from '../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import type {
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
isNativeChatAgentAvailable,
|
||||
nativeChatAvailabilityAgent
|
||||
} from '../../../../src/shared/native-chat/native-chat-availability'
|
||||
import { isNativeChatTranscriptLocalReadable } from '../../../../src/shared/native-chat/transcript/native-chat-transcript-readability'
|
||||
import { isNativeChatTranscriptLocalReadable } from '../../../../src/shared/native-chat/transcript/messages/native-chat-transcript-readability'
|
||||
|
||||
export type MobileNativeChatResolution = {
|
||||
agent: string
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { agentJournalSubmissionKey } from '../../../../src/shared/agent-session/journal/agent-session-journal-item-key'
|
||||
import { mobileAgentSessionWriteNoticeText } from './agent-session/agent-session-write-notice-copy'
|
||||
import { agentSessionVisibleFailureFacts } from '../../../../src/shared/agent-session/failures/agent-session-visible-failures'
|
||||
import type { NativeChatTurnJournal } from '../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import type { NativeChatTurnJournal } from '../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import { dispatchWasWithdrawn } from '../../../../src/shared/agent-session/requests/structured-agent-session-dispatch-rejection'
|
||||
import { structuredAgentSessionRecordedRejectionParts } from '../../../../src/shared/agent-session/failures/structured-agent-session-rejection-words'
|
||||
import { tuiAgentDisplayName } from '../../../../src/shared/agent-launch/catalog/tui-agent-display-names'
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
subscribeSharedClientEvents,
|
||||
type SharedClientEvent
|
||||
} from '../../../transport/connection/shared-client-events'
|
||||
import { nativeChatQueueFollowUps } from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
|
||||
/** A desktop chat setting the host pushes live: its read, its change event and its ready-snapshot field. */
|
||||
export type MobileNativeChatHostPreferenceKind = {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { useCallback, useSyncExternalStore } from 'react'
|
||||
import { nativeChatQueueFollowUps } from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
import { nativeChatQueueFollowUps } from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
import type { RpcClient } from '../../../transport/rpc/rpc-client-contract'
|
||||
import {
|
||||
mobileNativeChatHostPreference,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Text, View } from 'react-native'
|
||||
import { MessageSquareMore } from 'lucide-react-native'
|
||||
import type { NativeChatAskRowSubject } from '../../../../../src/shared/native-chat/input/native-chat-ask-row'
|
||||
import type { NativeChatAskRowSubject } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-row'
|
||||
import { nativeChatAskRowCopy } from './native-chat-ask-row-copy'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import { INLINE_TEXT_SELECTION } from '../../../components/inline-text-selection'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Text, View } from 'react-native'
|
||||
import type { NativeChatBackgroundTaskBlock } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { nativeChatBackgroundTaskRun } from '../../../../../src/shared/native-chat/transcript/native-chat-background-task-run'
|
||||
import { nativeChatBackgroundTaskRun } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-background-task-run'
|
||||
import { AGENT_STATE_DOT_SIZE, AgentStateDot } from '../../../components/AgentStateDot'
|
||||
import { INLINE_TEXT_SELECTION } from '../../../components/inline-text-selection'
|
||||
import { colors, spacing, typography } from '../../../theme/mobile-theme'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createElement, type ReactNode } from 'react'
|
||||
import { act, create, type ReactTestInstance, type ReactTestRenderer } from 'react-test-renderer'
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
import type { NativeChatLiveReasoning } from '../../../../../src/shared/native-chat/transcript/native-chat-reasoning-row'
|
||||
import type { NativeChatLiveReasoning } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-reasoning-row'
|
||||
|
||||
// Android lacks inline selection; exercise the message-actions copy path separately from iOS.
|
||||
vi.mock('react-native', async () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useContext } from 'react'
|
||||
import { Pressable, Text, View } from 'react-native'
|
||||
import { ChevronRight } from 'lucide-react-native'
|
||||
import { nativeChatReasoningDisclosureKey } from '../../../../../src/shared/native-chat/transcript/native-chat-reasoning-row'
|
||||
import { nativeChatReasoningDisclosureKey } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-reasoning-row'
|
||||
import { formatMobileNativeChatActiveTurnLabel } from './native-chat-turn-status-copy'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import { INLINE_TEXT_SELECTION } from '../../../components/inline-text-selection'
|
||||
|
||||
@@ -9,15 +9,15 @@ import * as Chat from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import {
|
||||
isRenderableSubagentGroup,
|
||||
withoutSubagentGroupTwins
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-subagent-summary'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/native-chat-row-content'
|
||||
} from '../../../../../src/shared/native-chat/transcript/subagents/native-chat-subagent-summary'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-row-content'
|
||||
import {
|
||||
MobileNativeChatGroupedThought,
|
||||
MobileNativeChatReasoningRow
|
||||
} from './MobileNativeChatReasoningRow'
|
||||
import { mobileNativeChatRowId } from './mobile-native-chat-reading-place'
|
||||
import { nativeChatWorkRunEntries } from '../../../../../src/shared/native-chat/native-chat-work-run'
|
||||
import { nativeChatReasoningDisclosureKey } from '../../../../../src/shared/native-chat/transcript/native-chat-reasoning-row'
|
||||
import { nativeChatReasoningDisclosureKey } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-reasoning-row'
|
||||
import { MobileNativeChatTurnStatus } from './MobileNativeChatTurnStatus'
|
||||
import { MobileNativeChatNoticeRow } from './MobileNativeChatNoticeRow'
|
||||
import { MobileNativeChatPullRequestEventLine } from './MobileNativeChatPullRequestEventLine'
|
||||
@@ -31,13 +31,13 @@ import { MobileNativeChatResolutionReceipt } from './MobileNativeChatResolutionR
|
||||
import {
|
||||
nativeChatAskRunBlocks,
|
||||
nativeChatAskRunSubject
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-ask-row'
|
||||
} from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-row'
|
||||
import type { NativeChatResolvedPrompt } from '../../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import { MobileNativeChatSubagentGroup } from './MobileNativeChatSubagentGroup'
|
||||
import { MobileNativeChatBackgroundTaskRun } from './MobileNativeChatBackgroundTaskRun'
|
||||
import { withoutBackgroundTaskRows } from '../../../../../src/shared/native-chat/input/native-chat-background-task-row'
|
||||
import { withoutBackgroundTaskRows } from '../../../../../src/shared/native-chat/input/task-lists/native-chat-background-task-row'
|
||||
import { ToolRun } from './MobileNativeChatToolRun'
|
||||
import type { NativeChatTurnStatus } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatTurnStatus } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import { styles } from './mobile-native-chat-message-styles'
|
||||
import { MobileNativeChatAgentMessageCard } from './MobileNativeChatAgentMessageCard'
|
||||
import { MobileNativeChatVisualContext } from '../visual/mobile-native-chat-visual-context'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { View } from 'react-native'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { nativeChatMessageCopyText } from '../../../../../src/shared/native-chat/transcript/native-chat-message-copy-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../../src/shared/native-chat/transcript/messages/native-chat-message-copy-text'
|
||||
import { MobileNativeChatMessageTime } from './MobileNativeChatMessageTime'
|
||||
import { MobileNativeChatRewindButton } from './MobileNativeChatRewindButton'
|
||||
import { MobileNativeChatResponseActions } from './MobileNativeChatResponseActions'
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Text } from 'react-native'
|
||||
import {
|
||||
getNativeChatMessageDay,
|
||||
getNativeChatMessageTimeFormatter
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-message-time'
|
||||
} from '../../../../../src/shared/native-chat/transcript/messages/native-chat-message-time'
|
||||
import { useSharedNowSnapshot } from '../../../hooks/use-now'
|
||||
import { colors, typography } from '../../../theme/mobile-theme'
|
||||
import { themedStyleSheet } from '../../../theme/themed-styles'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useMemo, type ReactNode } from 'react'
|
||||
import { nativeChatProseToMarkdown } from '../../../../../src/shared/native-chat/transcript/native-chat-prose'
|
||||
import { nativeChatProseToMarkdown } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-prose'
|
||||
import {
|
||||
isTextBlock,
|
||||
type NativeChatBlock
|
||||
|
||||
@@ -7,9 +7,9 @@ import {
|
||||
nativeChatReasoningDisclosureKey,
|
||||
nativeChatReasoningHeadline,
|
||||
nativeChatReasoningHeadlineText
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-reasoning-row'
|
||||
} from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-reasoning-row'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/native-chat-row-content'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-row-content'
|
||||
import { useMobileNativeChatFullMessage } from './MobileNativeChatFullContent'
|
||||
import { MobileNativeChatMarkdown } from './MobileNativeChatMarkdown'
|
||||
import { colors } from '../../../theme/mobile-theme'
|
||||
|
||||
@@ -4,15 +4,15 @@ import {
|
||||
formatSubagentTokens,
|
||||
nativeChatSubagentGroupHeader,
|
||||
subagentStateLabel
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-subagent-group-header'
|
||||
} from '../../../../../src/shared/native-chat/transcript/subagents/native-chat-subagent-group-header'
|
||||
import { sayMobileNativeChatSubagentGroup as say } from './native-chat-subagent-group-copy'
|
||||
import { sayMobileNativeChatSessionOption as sayOption } from '../input/native-chat-session-option-copy'
|
||||
import { normalizeSubagentState } from '../../../../../src/shared/native-chat/transcript/native-chat-subagent-summary'
|
||||
import { normalizeSubagentState } from '../../../../../src/shared/native-chat/transcript/subagents/native-chat-subagent-summary'
|
||||
import {
|
||||
subagentEntryDetail,
|
||||
subagentEntryRunsOn
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-subagent-entry-detail'
|
||||
import { formatNativeChatDuration } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
} from '../../../../../src/shared/native-chat/transcript/subagents/native-chat-subagent-entry-detail'
|
||||
import { formatNativeChatDuration } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import type {
|
||||
NativeChatSubagentGroupBlock,
|
||||
NativeChatSubagentState
|
||||
|
||||
@@ -28,7 +28,7 @@ import type {
|
||||
NativeChatBlock,
|
||||
NativeChatToolCallBlock
|
||||
} from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { buildNativeChatTaskListRows } from '../../../../../src/shared/native-chat/input/native-chat-task-list-history'
|
||||
import { buildNativeChatTaskListRows } from '../../../../../src/shared/native-chat/input/task-lists/native-chat-task-list-history'
|
||||
import { colors, pressedStyle } from '../../../theme/mobile-theme'
|
||||
import { useMobileColorScheme } from '../../../theme/use-mobile-color-scheme'
|
||||
import { MobileNativeChatToolGlyph } from './MobileNativeChatToolIcon'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useState } from 'react'
|
||||
import { Pressable, StyleSheet, Text, View } from 'react-native'
|
||||
import { ChevronRight } from 'lucide-react-native'
|
||||
import { nativeChatElapsedSeconds } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import { nativeChatElapsedSeconds } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import {
|
||||
formatMobileNativeChatTurnStatusLabel,
|
||||
nativeChatTurnStatusCopy
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Pressable, Text, View } from 'react-native'
|
||||
import {
|
||||
NATIVE_CHAT_USER_MESSAGE_MAX_UNFOLDED_LINES,
|
||||
nativeChatUserMessageFolds
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-user-message-fold'
|
||||
} from '../../../../../src/shared/native-chat/transcript/folding/native-chat-user-message-fold'
|
||||
import { styles as markdownStyles } from '../../../components/mobile-markdown-styles'
|
||||
import { colors, spacing, typography, pressedStyle } from '../../../theme/mobile-theme'
|
||||
import { themedStyleSheet } from '../../../theme/themed-styles'
|
||||
|
||||
@@ -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/transcript/native-chat-message-copy-text'
|
||||
import { nativeChatMessageCopyText } from '../../../../../src/shared/native-chat/transcript/messages/native-chat-message-copy-text'
|
||||
|
||||
export function mobileNativeChatDisplayCopyText(message: NativeChatMessage): string {
|
||||
return message.role === 'user' && message.from
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import {
|
||||
isTextBlock,
|
||||
type NativeChatMessage
|
||||
} from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/native-chat-row-content'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-row-content'
|
||||
import { parseMobileMarkdownTree } from '../../../components/mobile-markdown-tree'
|
||||
import { protectMobileMarkdownVisualLines } from '../../../components/mobile-markdown-visual-lines'
|
||||
import { mobileMarkdownImageSources } from '../../../components/mobile-markdown-image-placement'
|
||||
|
||||
@@ -3,13 +3,13 @@ import type { MobileNativeChatDraftDestination } from '../composer/mobile-native
|
||||
import {
|
||||
assignNativeChatPendingOccurrence,
|
||||
nativeChatPendingContentKey
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-pending-occurrence'
|
||||
} from '../../../../../src/shared/native-chat/transcript/pending-sends/native-chat-pending-occurrence'
|
||||
import {
|
||||
NATIVE_CHAT_PENDING_SEND_LIMIT,
|
||||
prunePendingSends,
|
||||
visibleNativeChatPendingSends,
|
||||
type NativeChatPendingSend
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-pending-sends'
|
||||
} from '../../../../../src/shared/native-chat/transcript/pending-sends/native-chat-pending-sends'
|
||||
|
||||
export type MobileNativeChatPendingMessage = NativeChatPendingSend & {
|
||||
// Phone-local preview URIs; these echoes retire only once their preview binds to a transcript row.
|
||||
|
||||
@@ -2,12 +2,12 @@ import type { AgentType } from '../../../../../src/shared/agent-status/contracts
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { nativeChatToolFoldKind } from '../../../../../src/shared/native-chat/tools/native-chat-tool-fold'
|
||||
import { isOrphanRowId } from '../../../../../src/shared/native-chat/tools/native-chat-folded-tool-results'
|
||||
import { subagentItemBlock } from '../../../../../src/shared/native-chat/transcript/native-chat-subagent-items'
|
||||
import { subagentItemBlock } from '../../../../../src/shared/native-chat/transcript/subagents/native-chat-subagent-items'
|
||||
import {
|
||||
hasImagePromptMarker,
|
||||
imageSourcePathsFromMessage,
|
||||
normalizeImageTranscriptUnit
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-image-transcript-markers'
|
||||
} from '../../../../../src/shared/native-chat/transcript/images/native-chat-image-transcript-markers'
|
||||
import type { MobileNativeChatProjection } from './mobile-native-chat-projection'
|
||||
import {
|
||||
prepareMobileNativeChatSource,
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
buildNativeChatFoldUnit,
|
||||
groupNativeChatFoldUnitMembers,
|
||||
type NativeChatFoldUnit as Unit
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-fold-units'
|
||||
} from '../../../../../src/shared/native-chat/transcript/folding/native-chat-fold-units'
|
||||
import { finishMobileNativeChatMessages } from './mobile-native-chat-render-data'
|
||||
|
||||
// A tail harness row that is its own image unit and no roster member leaves every earlier unit as it was.
|
||||
|
||||
@@ -4,11 +4,11 @@ import {
|
||||
nativeChatToolFoldKind,
|
||||
type NativeChatToolFoldKind
|
||||
} from '../../../../../src/shared/native-chat/tools/native-chat-tool-fold'
|
||||
import { foldSubagentItems } from '../../../../../src/shared/native-chat/transcript/native-chat-subagent-items'
|
||||
import { foldSubagentItems } from '../../../../../src/shared/native-chat/transcript/subagents/native-chat-subagent-items'
|
||||
import {
|
||||
nativeChatImageTranscriptUnits,
|
||||
normalizeImageTranscriptUnit
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-image-transcript-markers'
|
||||
} from '../../../../../src/shared/native-chat/transcript/images/native-chat-image-transcript-markers'
|
||||
import {
|
||||
finishMobileNativeChatMessages,
|
||||
foldMobileNativeChatMessages
|
||||
@@ -21,7 +21,7 @@ import { projectMobileNativeChatTail } from './mobile-native-chat-projection-tai
|
||||
import {
|
||||
buildNativeChatFoldUnits,
|
||||
type NativeChatFoldUnit as Unit
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-fold-units'
|
||||
} from '../../../../../src/shared/native-chat/transcript/folding/native-chat-fold-units'
|
||||
|
||||
type ImageUnit = { sources: readonly NativeChatMessage[]; rows: NativeChatMessage[] }
|
||||
export type MobileNativeChatProjection = {
|
||||
|
||||
@@ -9,16 +9,16 @@ import {
|
||||
foldToolMessages,
|
||||
isUndrawnProviderFrameMessage
|
||||
} from '../../../../../src/shared/native-chat/tools/native-chat-tool-fold'
|
||||
import { projectNativeChatTaskListFrames } from '../../../../../src/shared/native-chat/input/native-chat-task-list-frames'
|
||||
import { foldSubagentItems } from '../../../../../src/shared/native-chat/transcript/native-chat-subagent-items'
|
||||
import { prepareNativeChatMessages } from '../../../../../src/shared/native-chat/transcript/native-chat-message-preparation'
|
||||
import { projectNativeChatTaskListFrames } from '../../../../../src/shared/native-chat/input/task-lists/native-chat-task-list-frames'
|
||||
import { foldSubagentItems } from '../../../../../src/shared/native-chat/transcript/subagents/native-chat-subagent-items'
|
||||
import { prepareNativeChatMessages } from '../../../../../src/shared/native-chat/transcript/messages/native-chat-message-preparation'
|
||||
import {
|
||||
isImageRefBlock,
|
||||
type NativeChatMessage
|
||||
} from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import type { AgentType } from '../../../../../src/shared/agent-status/contracts/agent-status-types'
|
||||
import type { MobileNativeChatStatus } from '../mobile-native-chat-session-status'
|
||||
import { orderNativeChatDisplayMessages } from '../../../../../src/shared/native-chat/transcript/native-chat-message-order'
|
||||
import { orderNativeChatDisplayMessages } from '../../../../../src/shared/native-chat/transcript/messages/native-chat-message-order'
|
||||
import { translate } from '../../../i18n/mobile-i18n'
|
||||
|
||||
function mobileNativeChatEmptyStateCopy(
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
createNativeChatReplyRevealTracker,
|
||||
trackNativeChatReplyRows,
|
||||
type NativeChatReplyReveals
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-reply-reveals'
|
||||
} from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-reply-reveals'
|
||||
import { useReducedMotionEnabled } from '../../../platform/accessibility/use-reduced-motion'
|
||||
|
||||
// Retain reveal state above list remounts/view toggles so replies resume instead of replaying.
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { NativeChatMessage } from '../../../../../src/shared/native-chat/na
|
||||
import type { NativeChatResolvedPrompt } from '../../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import { splitNativeChatBlocks } from '../../../../../src/shared/native-chat/tools/native-chat-tool-fold'
|
||||
import { nativeChatWorkRunEntries } from '../../../../../src/shared/native-chat/native-chat-work-run'
|
||||
import { nativeChatAskRunBlocks } from '../../../../../src/shared/native-chat/input/native-chat-ask-row'
|
||||
import { nativeChatAskRunBlocks } from '../../../../../src/shared/native-chat/input/questions/native-chat-ask-row'
|
||||
import type { MobileNativeChatWorkRuns } from './use-mobile-native-chat-transcript-rows'
|
||||
import type { MobileNativeChatRowSources } from './mobile-native-chat-row-keys'
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { sha256 } from '@noble/hashes/sha256'
|
||||
import { bytesToHex } from '@noble/hashes/utils'
|
||||
import { setBoundedScopeCacheEntry } from '../../../../../src/shared/native-chat/native-chat-scope-cache'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { encodeNativeChatTranscriptIdentity } from '../../../../../src/shared/native-chat/transcript/native-chat-transcript-retention'
|
||||
import { encodeNativeChatTranscriptIdentity } from '../../../../../src/shared/native-chat/transcript/messages/native-chat-transcript-retention'
|
||||
import type { StructuredAgentSessionState } from '../../../../../src/shared/agent-session/structured-agent-session-reducer'
|
||||
import { decodeDeviceStoreValue } from '../../../device-store/device-store-value-codec'
|
||||
import { readPageDeviceStore } from '../../../mobile-web-shell/bridge/page-device-store'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
NativeChatSubagentGroupCopyId,
|
||||
NativeChatSubagentGroupSay
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-subagent-group-header'
|
||||
} from '../../../../../src/shared/native-chat/transcript/subagents/native-chat-subagent-group-header'
|
||||
import { translate } from '../../../i18n/mobile-i18n'
|
||||
|
||||
export const sayMobileNativeChatSubagentGroup: NativeChatSubagentGroupSay = (id, values) => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { Translate } from '../../../i18n/mobile-i18n'
|
||||
import {
|
||||
describeNativeChatActiveTurnLabel,
|
||||
describeNativeChatTurnStatus
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
} from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
|
||||
export function formatMobileNativeChatDuration(seconds: number, t: Translate): string {
|
||||
const totalSeconds = Number.isFinite(seconds) ? Math.max(0, Math.floor(seconds)) : 0
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import { useContext, useMemo } from 'react'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import type { NativeChatTurnStatus } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import { nativeChatGeneratedImageAnswers } from '../../../../../src/shared/native-chat/transcript/native-chat-generated-image-answers'
|
||||
import type { NativeChatTurnStatus } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import { nativeChatGeneratedImageAnswers } from '../../../../../src/shared/native-chat/transcript/images/native-chat-generated-image-answers'
|
||||
import { MobileNativeChatVisualContext } from '../visual/mobile-native-chat-visual-context'
|
||||
import {
|
||||
mobileNativeChatMarkdownImageSources,
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
type MobileNativeChatSendOutcome
|
||||
} from '../composer/mobile-native-chat-send'
|
||||
import type { CatalogCommandDelivery } from '../../../../../src/shared/agent-session/options/catalog-providers/agent-session-option-catalog-types'
|
||||
import { isSlashCommandDraft } from '../../../../../src/shared/native-chat/input/native-chat-slash-commands'
|
||||
import { isSlashCommandDraft } from '../../../../../src/shared/native-chat/input/commands/native-chat-slash-commands'
|
||||
import { healMobileNativeChatStaleInput } from '../composer/mobile-native-chat-stale-input'
|
||||
import { classifyMobileNativeChatSend } from '../composer/mobile-native-chat-send-classification'
|
||||
import { readMobileNativeChatSkillOrigin } from '../composer/mobile-native-chat-draft-store'
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
UNCONFIRMED_SEND_RESTORED_MESSAGE
|
||||
} from '../composer/use-mobile-native-chat-unconfirmed-sends'
|
||||
import type { MobileNativeChatLaunchDraftSeed } from '../composer/use-mobile-native-chat-launch-draft-seed'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat/input/native-chat-paste-bytes'
|
||||
import { buildNativeChatPasteBytes } from '../../../../../src/shared/native-chat/input/composer/native-chat-paste-bytes'
|
||||
|
||||
export type MobileNativeChatMessageSend = {
|
||||
send: (text: string, images?: string[]) => Promise<boolean>
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
receiveNativeChatText,
|
||||
startNativeChatTextReveal,
|
||||
type NativeChatTextRevealFrames
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-text-reveal'
|
||||
} from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-text-reveal'
|
||||
import { MobileNativeChatReplyRevealsContext } from './mobile-native-chat-reply-reveals'
|
||||
import { MobileNativeChatGrowthHoldContext } from './mobile-native-chat-growth-hold'
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
import { isFloatingWorkspaceWorktreeId } from '../../floating-workspace'
|
||||
import { resumeFolderWorkspaceListRead } from '../../../agent-history/mobile-agent-history-operations'
|
||||
import { isMobileFolderNativeChatReadable } from '../mobile-native-chat-eligibility'
|
||||
import { isNativeChatTranscriptLocalReadable } from '../../../../../src/shared/native-chat/transcript/native-chat-transcript-readability'
|
||||
import { isNativeChatTranscriptLocalReadable } from '../../../../../src/shared/native-chat/transcript/messages/native-chat-transcript-readability'
|
||||
|
||||
type ReadabilityState = {
|
||||
client: RpcClient | null
|
||||
|
||||
@@ -2,11 +2,11 @@ import type {
|
||||
NativeChatMessage,
|
||||
NativeChatToolCallBlock
|
||||
} from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import type { NativeChatTaskListPredecessors } from '../../../../../src/shared/native-chat/input/native-chat-task-list-history'
|
||||
import type { NativeChatTaskListPredecessors } from '../../../../../src/shared/native-chat/input/task-lists/native-chat-task-list-history'
|
||||
import type { NativeChatResolvedPrompt } from '../../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import { isActionableStructuredAgentSessionPrompt } from '../../../../../src/shared/agent-session/view/structured-agent-session-live-turn'
|
||||
import { nativeChatRowOffersRewind } from '../../../../../src/shared/native-chat/native-chat-rewind-eligibility'
|
||||
import type { NativeChatTurnStatus } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatTurnStatus } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import type { NativeChatTurnDiff } from '../../../../../src/shared/native-chat/tools/native-chat-turn-diffs'
|
||||
|
||||
export type MobileNativeChatTurnRow = {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { useCallback, useMemo } from 'react'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import type { NativeChatTaskListPredecessors } from '../../../../../src/shared/native-chat/input/native-chat-task-list-history'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import type { NativeChatTaskListPredecessors } from '../../../../../src/shared/native-chat/input/task-lists/native-chat-task-list-history'
|
||||
import type { NativeChatResolvedPrompt } from '../../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import { MobileNativeChatRow } from './MobileNativeChatRowItemSource'
|
||||
import { mobileNativeChatUnsentNotices } from '../mobile-native-chat-unsent-notices'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useCallback, useMemo, useState } from 'react'
|
||||
import type { AgentStatusEntry } from '../../../../../src/shared/agent-status/contracts/agent-status-types'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import type { NativeChatSettledTurns } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatSettledTurns } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import {
|
||||
mergeNativeChatLiveSession,
|
||||
nativeChatHookHasWorkingSubagents,
|
||||
@@ -25,7 +25,7 @@ import type { MobileNativeChatResolution } from '../mobile-native-chat-eligibili
|
||||
import {
|
||||
pendingSendsAsMessages,
|
||||
type NativeChatPendingSend
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-pending-sends'
|
||||
} from '../../../../../src/shared/native-chat/transcript/pending-sends/native-chat-pending-sends'
|
||||
|
||||
const NO_MESSAGES: NativeChatMessage[] = []
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { useMemo } from 'react'
|
||||
import type { NativeChatResolvedPrompt } from '../../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/native-chat-row-content'
|
||||
import { deriveNativeChatRowContent } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-row-content'
|
||||
import {
|
||||
NATIVE_CHAT_EMPTY_TURN_FOLD,
|
||||
nativeChatTurnFold,
|
||||
nativeChatTurnFoldRow,
|
||||
type NativeChatTurnFold
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-turn-fold'
|
||||
} from '../../../../../src/shared/native-chat/transcript/folding/native-chat-turn-fold'
|
||||
import {
|
||||
nativeChatRowRendersProse,
|
||||
nativeChatRowSpeaksOrActs
|
||||
} from '../../../../../src/shared/native-chat/native-chat-trailing-run'
|
||||
import type { NativeChatTurnStatus } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatTurnStatus } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import {
|
||||
nativeChatWorkRunMember,
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
type MobileNativeChatPendingItem
|
||||
} from './mobile-native-chat-render-data'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { orderNativeChatDisplayMessages } from '../../../../../src/shared/native-chat/transcript/native-chat-message-order'
|
||||
import { orderNativeChatDisplayMessages } from '../../../../../src/shared/native-chat/transcript/messages/native-chat-message-order'
|
||||
|
||||
type Input = Parameters<typeof buildMobileNativeChatTransientData>[0]
|
||||
type Preview = { urls: readonly string[]; row: NativeChatMessage }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useMemo } from 'react'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { nativeChatTurnMembership } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import { nativeChatTurnMembership } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import { nativeChatTurnDiffs } from '../../../../../src/shared/native-chat/tools/native-chat-turn-diffs'
|
||||
|
||||
export function useMobileNativeChatTurnDiffs(
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { act, create, type ReactTestRenderer } from 'react-test-renderer'
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
import type { AgentJournalItemBody } from '../../../../../src/shared/agent-session/journal/agent-session-journal-types'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
|
||||
import { Harness, Result } from './use-mobile-native-chat-turn-disclosure.test-fixture'
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import { createElement } from 'react'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import type { NativeChatSettledTurns } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import type { NativeChatSettledTurns } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import { useMobileNativeChatTurnDisclosure } from './use-mobile-native-chat-turn-disclosure'
|
||||
|
||||
export function userMessage(id: string): NativeChatMessage {
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import type {
|
||||
import type { AgentJournalTurnScope } from '../../../../../src/shared/agent-session/journal/agent-session-journal-turn-scope'
|
||||
import { agentJournalSubmissionKey } from '../../../../../src/shared/agent-session/journal/agent-session-journal-item-key'
|
||||
import type { NativeChatMessage } from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import { useMobileNativeChatTurnDisclosure } from './use-mobile-native-chat-turn-disclosure'
|
||||
|
||||
import { Harness, Result, userMessage } from './use-mobile-native-chat-turn-disclosure.test-fixture'
|
||||
|
||||
@@ -6,21 +6,21 @@ import {
|
||||
isSubagentGroupBlock,
|
||||
type NativeChatMessage
|
||||
} from '../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { nativeChatReasoningDisclosureKey } from '../../../../../src/shared/native-chat/transcript/native-chat-reasoning-row'
|
||||
import { nativeChatReasoningDisclosureKey } from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-reasoning-row'
|
||||
import {
|
||||
nativeChatLiveLine,
|
||||
type NativeChatLiveLine
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-live-line'
|
||||
} from '../../../../../src/shared/native-chat/transcript/row-content/native-chat-live-line'
|
||||
import type {
|
||||
NativeChatSettledTurns,
|
||||
NativeChatTurnStatus
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import { isNativeChatRowInLiveWorkingTurn } from '../../../../../src/shared/native-chat/transcript/native-chat-live-turn-membership'
|
||||
} from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import { isNativeChatRowInLiveWorkingTurn } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-live-turn-membership'
|
||||
import {
|
||||
nativeChatTurnMembership,
|
||||
type NativeChatTurnJournal
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import { nativeChatMessagesWaitingBehindLiveTurn } from '../../../../../src/shared/native-chat/transcript/native-chat-messages-waiting-behind-live-turn'
|
||||
} from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import { nativeChatMessagesWaitingBehindLiveTurn } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-messages-waiting-behind-live-turn'
|
||||
import { NATIVE_CHAT_STREAMING_ID } from '../../../../../src/shared/native-chat/native-chat-streaming'
|
||||
import type { NativeChatResolvedPrompt } from '../../../../../src/shared/native-chat/native-chat-resolution-receipt'
|
||||
import { useMobileNativeChatTranscriptRows } from './use-mobile-native-chat-transcript-rows'
|
||||
@@ -28,7 +28,7 @@ import type { MobileNativeChatRunPresentation } from './mobile-native-chat-run-d
|
||||
import {
|
||||
nativeChatRowsInDrawOrder,
|
||||
nativeChatTurnBarRows
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-turn-grouping'
|
||||
} from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-grouping'
|
||||
import { useMobileNativeChatTurnStatus } from './use-mobile-native-chat-turn-status'
|
||||
|
||||
const EMPTY_TURN_IDS: ReadonlySet<string> = new Set()
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
type NativeChatSettledTurns,
|
||||
type NativeChatTurnStatus,
|
||||
type NativeChatTurnTimingByTurn
|
||||
} from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
} from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
|
||||
const EMPTY_TURN_TIMING_BY_TURN: NativeChatTurnTimingByTurn = Object.freeze({})
|
||||
|
||||
|
||||
+2
-2
@@ -3,9 +3,9 @@ import type {
|
||||
AgentJournalRenderItem,
|
||||
AgentJournalSubmission
|
||||
} from '../../../../../src/shared/agent-session/journal/agent-session-journal-types'
|
||||
import type { NativeChatSettledTurns } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatSettledTurns } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import type { AgentSessionLatestTurn } from '../../../../../src/shared/agent-session/agent-session-wire'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
import type { NativeChatTurnJournal } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import type { StructuredAgentHostClock } from '../../../../../src/shared/agent-session/structured-agent-session-reducer'
|
||||
import { selectStructuredAgentTurnBars } from '../../../../../src/shared/agent-session/view/structured-agent-session-turn-timing'
|
||||
import {
|
||||
|
||||
@@ -8,8 +8,8 @@ import type { StructuredAgentSessionState } from '../../../../../src/shared/agen
|
||||
import type { StructuredAgentSessionOptimisticMessage } from '../../../../../src/shared/agent-session/view/structured-agent-session-message-projection'
|
||||
import { createStructuredAgentSessionMessageProjection } from '../../../../../src/shared/agent-session/view/structured-agent-session-message-stream'
|
||||
import { tuiAgentDisplayName } from '../../../../../src/shared/agent-launch/catalog/tui-agent-display-names'
|
||||
import { withNativeChatCutTurnNotices } from '../../../../../src/shared/native-chat/transcript/native-chat-cut-turn-notice'
|
||||
import { omitNativeChatThreadGoalRows } from '../../../../../src/shared/native-chat/transcript/native-chat-thread-goal-rows'
|
||||
import { withNativeChatCutTurnNotices } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-cut-turn-notice'
|
||||
import { omitNativeChatThreadGoalRows } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-thread-goal-rows'
|
||||
import { createStructuredQuestionProjection } from '../../../../../src/shared/structured-agent-question-projection'
|
||||
import { projectStructuredAgentStartItem } from '../../../../../src/shared/structured-agent-start-projection'
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { useMemo } from 'react'
|
||||
import type { StructuredAgentSessionState } from '../../../../../src/shared/agent-session/structured-agent-session-reducer'
|
||||
import type { NativeChatLiveTurnIndicator } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-status'
|
||||
import type { NativeChatLiveTurnIndicator } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-status'
|
||||
import { isStructuredAgentSessionThinking } from '../../../../../src/shared/agent-session/view/structured-agent-session-live-turn'
|
||||
import { selectStructuredAgentTurnActivity } from '../../../../../src/shared/native-chat/transcript/native-chat-turn-activity'
|
||||
import { selectStructuredAgentTurnActivity } from '../../../../../src/shared/native-chat/transcript/turns/native-chat-turn-activity'
|
||||
import { agentStopDisplayStatus } from '../../../../../src/shared/agent-status/lifecycle/agent-stop-display-status'
|
||||
import { mobileStructuredSendQueues } from '../composer/mobile-structured-send-queue-rule'
|
||||
import {
|
||||
nativeChatSendFollowUp,
|
||||
type NativeChatSendFollowUp
|
||||
} from '../../../../../src/shared/native-chat/input/native-chat-follow-up-behavior'
|
||||
} from '../../../../../src/shared/native-chat/input/composer/native-chat-follow-up-behavior'
|
||||
|
||||
export function useMobileStructuredTurnIndicator(input: {
|
||||
state: StructuredAgentSessionState
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useLayoutEffect, useRef, type MutableRefObject } from 'react'
|
||||
import { encodeNativeChatTranscriptIdentity } from '../../../../src/shared/native-chat/transcript/native-chat-transcript-retention'
|
||||
import { encodeNativeChatTranscriptIdentity } from '../../../../src/shared/native-chat/transcript/messages/native-chat-transcript-retention'
|
||||
import { resolveMobileNativeChat, type MobileNativeChatTab } from './mobile-native-chat-eligibility'
|
||||
import {
|
||||
useMobileSessionViewMode,
|
||||
|
||||
@@ -15,7 +15,7 @@ import type { MobileNativeChatController } from './mobile-native-chat-controller
|
||||
import { useMobileBridgeChatPromptWrites } from './input/use-mobile-bridge-chat-prompt-writes'
|
||||
import { useMobileNativeChatActiveResolution } from './use-mobile-native-chat-active-resolution'
|
||||
import { useMobileNativeChatPromptController } from './input/use-mobile-native-chat-prompt-controller'
|
||||
import { nativeChatPendingSendPlacement } from '../../../../src/shared/native-chat/transcript/native-chat-pending-sends'
|
||||
import { nativeChatPendingSendPlacement } from '../../../../src/shared/native-chat/transcript/pending-sends/native-chat-pending-sends'
|
||||
import { mobileNativeChatScopeKey } from './mobile-native-chat-scope-key'
|
||||
import { useMobileNativeChatCiResultLines } from './preferences/use-mobile-native-chat-ci-result-lines'
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import { isRootAgentJournalItem } from '../../../../src/shared/agent-session/jou
|
||||
import {
|
||||
nativeChatTurnMembership,
|
||||
type NativeChatTurnJournal
|
||||
} from '../../../../src/shared/native-chat/transcript/native-chat-turn-membership'
|
||||
} from '../../../../src/shared/native-chat/transcript/turns/native-chat-turn-membership'
|
||||
import type { RpcClient } from '../../transport/rpc/rpc-client-contract'
|
||||
|
||||
/** The fork a response offers: none, an empty held slot, drawn disabled, or pressable. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||
import { EMPTY_NATIVE_CHAT_TRANSCRIPT } from '../../../../src/shared/native-chat/transcript/native-chat-transcript-retention'
|
||||
import { EMPTY_NATIVE_CHAT_TRANSCRIPT } from '../../../../src/shared/native-chat/transcript/messages/native-chat-transcript-retention'
|
||||
import {
|
||||
createNativeChatMerger,
|
||||
replaceList
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { AgentJournalToolCallItem } from '../../../shared/agent-session/jou
|
||||
import {
|
||||
isSettledBackgroundTaskState,
|
||||
normalizeBackgroundTaskKind
|
||||
} from '../../../shared/native-chat/input/native-chat-background-task-row'
|
||||
} from '../../../shared/native-chat/input/task-lists/native-chat-background-task-row'
|
||||
import type { NativeChatBackgroundTaskBlock } from '../../../shared/native-chat/native-chat-types'
|
||||
import type { ToolCallUpdate } from '../generated/acp-protocol.generated'
|
||||
import type { AcpBackgroundTaskUpdate, AcpDialectNotification } from './acp-dialect'
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user