Files
archived-orca/mobile/src/tasks/mobile-tasks-dependencies.ts
Neil 19043a3d76 refactor(mobile): organize pairing, session, RPC and host owners (#39846)
* refactor(mobile): give relay and encryption concrete owners

* refactor(mobile): organize session and review feature owners

* refactor(mobile): organize RPC and host ownership

* test(mobile): point render fixtures at concrete owners

* refactor(mobile): use explicit type-only owner imports
2026-11-08 07:19:05 -08:00

150 lines
5.9 KiB
TypeScript

import { openExternalLink } from '../platform/external-link'
export { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'
export type { ReactNode } from 'react'
export {
ActivityIndicator,
FlatList,
Platform,
Pressable,
ScrollView,
StyleSheet,
Text,
View
} from 'react-native'
// Use the platform seam: WebView window.open is refused by both shells despite resolving successfully.
// The seam reports failures itself and returns void, preventing unreachable rejection handlers.
export const Linking: { openURL: (url: string) => void } = { openURL: openExternalLink }
export { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context'
export { useLocalSearchParams } from 'expo-router'
// The embedded page has one history entry; route pushes and Back must hand off to the native app stack.
export { useRouteHandoff as useRouter } from '../navigation/route-handoff'
export {
AlertTriangle,
Check,
ChevronDown,
ChevronLeft,
ChevronRight,
ChevronUp,
Copy,
ExternalLink,
GitBranch,
Lock,
MoreHorizontal,
Pencil,
Plus,
RefreshCw,
Search,
SlidersHorizontal,
X
} from 'lucide-react-native'
export type { RpcClient } from '../transport/rpc/rpc-client-contract'
export type { RpcSuccess } from '../transport/rpc/rpc-wire-types'
export { useHostClient } from '../transport/connection/host-client-hooks'
export {
useLastConnectedAt,
useRelayRecoveryStatus,
useReconnectAttempt
} from '../transport/connection/client-context-connection-metrics'
export { classifyConnection } from '../transport/connection/connection-health'
export { StatusDot } from '../components/StatusDot'
export { ActionSheetModal } from '../components/ActionSheetModal'
export { ConfirmModal } from '../components/ConfirmModal'
export { MobileMarkdown } from '../components/MobileMarkdown'
export { MobileAgentIcon } from '../components/MobileAgentIcon'
export { MobileWorkspaceNameInput } from '../components/MobileWorkspaceNameInput'
export { MessageBox } from '../components/composer-input/MessageBox'
export { TextField } from '../components/composer-input/TextField'
export { MobileSearchField } from '../components/MobileSearchField'
export { MobileSyntaxSegments } from '../components/MobileSyntaxSegments'
export { PickerModal } from '../components/PickerModal'
export type { PickerOption } from '../components/PickerModal'
export { TaskProviderLogo } from '../components/TaskProviderLogo'
export { buildGitHubPrFileDiffPreview } from './github-pr-file-diff'
export type { GitHubPrFileDiffLine } from './github-pr-file-diff'
export {
highlightMobileDiffLines,
resolveMobileSyntaxLanguage
} from '../files/session-documents/mobile-file-syntax'
export { buildGitHubCheckSummary } from './github-check-summary'
export { buildGitLabCheckSummary } from './gitlab-check-summary'
export {
getHostedMergeLabel,
getHostedReviewLabel,
getHostedReviewSignalTone,
getHostedChecksLabel
} from './mobile-hosted-check-status'
export { buildTaskWorkspaceCreateParams } from './workspace-create-params'
export { MOBILE_TASKS_CAPABILITY } from './mobile-tasks-capability'
export {
filterWorkspaceAgents,
isWorkspaceAgentEnabled,
pickWorkspaceAgent,
resolveWorkspaceAgentSelection,
workspaceAgentLabel
} from './workspace-agent-selection'
export type { WorkspaceAgentChoice } from './workspace-agent-selection'
export { shouldResolveHostedReviewStartPoint } from './hosted-review-start-point'
export { getLinkedWorkItemSuggestedName } from './mobile-workspace-name'
export {
dropFailedGitHubRepoSlugEntries,
filterGitHubProjectRowsForRepos,
findRepoForGitHubProjectRepository
} from './github-project-repo-match'
export type { GitHubRepoSlugCacheEntry } from './github-project-repo-match'
export { parseGitHubProjectInput as parseProjectInput } from './github-project-reference'
export type {
GitHubProjectOwnerType,
GitHubProjectPartialFailure,
GitHubProjectRef,
GitHubProjectSettings,
GitHubProjectSummary,
GitHubProjectViewSummary
} from './github-project-reference'
export {
extractGitHubIssueSourceFallback,
extractGitHubIssueSourceError
} from './github-work-item-source-errors'
export type {
GitHubIssueSourceFallback,
GitHubIssueSourceError
} from './github-work-item-source-errors'
export { parseSparsePresetDirectories } from './sparse-preset-draft'
export { deriveWorkspaceSshGate, workspaceSshStatusLabel } from './workspace-ssh-gate'
export { WORKTREE_CREATE_TIMEOUT_MS } from './workspace-create-timeout'
export {
isSetupHookTrusted,
normalizeSetupHookTrust,
persistSetupHookTrustApproval,
readRepoHooksSetupCommand,
wasSetupHookPreviouslyApproved
} from './setup-hook-trust'
export { colors, radii, spacing, typography } from '../theme/mobile-theme'
export type { MobileColorScheme } from '../theme/mobile-theme'
export { themedStyleSheet, themedStyles } from '../theme/themed-styles'
export { useMobileColorScheme } from '../theme/use-mobile-color-scheme'
export { hasSettledHostRepoList } from './host-repo-list'
export { useHostRepoList } from './use-host-repo-list'
export { isHostedTaskRepo, reconcileRepoSelection } from './hosted-repo-selection'
export type { LinearMobileIssue } from './linear-mobile-issue-read'
export { resolveComposerBranchSelection } from './mobile-composer-branch-selection'
export {
clearMobileTaskCopyFeedbackTimer,
scheduleMobileTaskCopyFeedbackReset
} from './mobile-task-copy-feedback-timer'
export type { BaseRefSearchResult } from '../../../src/shared/repo-types'
export type {
GitHubOwnerRepo,
ProviderCheckSummary
} from '../../../src/shared/github/pull-request-types'
export type { PersistedTrustedOrcaHooks } from '../../../src/shared/orca-yaml-hook-types'
export type { SparsePreset } from '../../../src/shared/worktree/create-types'
export type { SshConnectionState } from '../../../src/shared/ssh-types'
export {
githubProjectHost,
githubProjectIdentityKey as githubProjectKey
} from '../../../src/shared/github/project-identity'