diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 06f8482f86..96a66918c6 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -15,11 +15,8 @@ "@callstack/liquid-glass": "^0.7.1", "@effect/atom-react": "catalog:", "@expo-google-fonts/dm-sans": "^0.4.2", - "@gorhom/bottom-sheet": "^5", "@legendapp/list": "3.0.0-beta.44", "@react-native-menu/menu": "^2.0.0", - "@sethwebster/react-ethereal-input": "^0.4.0", - "@shopify/flash-list": "2.0.2", "@t3tools/client-runtime": "workspace:*", "@t3tools/contracts": "workspace:*", "@t3tools/shared": "workspace:*", @@ -35,7 +32,6 @@ "expo-glass-effect": "~55.0.8", "expo-haptics": "^55.0.9", "expo-image-picker": "~55.0.14", - "expo-linear-gradient": "~55.0.13", "expo-linking": "~55.0.12", "expo-paste-input": "^0.1.15", "expo-router": "~55.0.12", @@ -43,9 +39,8 @@ "expo-splash-screen": "~55.0.13", "expo-symbols": "~55.0.5", "expo-updates": "~55.0.16", - "punycode": "^2.3.1", - "react": "19.2.0", - "react-dom": "19.2.0", + "react": "19.2.5", + "react-dom": "19.2.5", "react-native": "0.83.4", "react-native-gesture-handler": "~2.30.0", "react-native-image-viewing": "^0.2.2", @@ -60,9 +55,9 @@ "uniwind": "^1.6.2" }, "devDependencies": { - "@types/react": "~19.2.10", + "@types/react": "~19.2.0", "babel-preset-expo": "~55.0.8", - "tailwindcss": "4.1.12", - "typescript": "~5.9.2" + "tailwindcss": "^4.0.0", + "typescript": "catalog:" } } diff --git a/apps/mobile/src/app/connections/index.tsx b/apps/mobile/src/app/connections/index.tsx index 190cf04342..a191d35781 100644 --- a/apps/mobile/src/app/connections/index.tsx +++ b/apps/mobile/src/app/connections/index.tsx @@ -1,5 +1,102 @@ -import { ConnectionsRouteScreen } from "../../features/connection/ConnectionsRouteScreen"; +import { Link, Stack } from "expo-router"; +import { SymbolView } from "expo-symbols"; +import { useCallback, useState } from "react"; +import { Pressable, ScrollView, View } from "react-native"; +import { useSafeAreaInsets } from "react-native-safe-area-context"; +import { useThemeColor } from "../../lib/useThemeColor"; -export default function ConnectionsRoute() { - return ; +import { AppText as Text } from "../../components/AppText"; +import { cn } from "../../lib/cn"; +import { useRemoteConnections } from "../../state/use-remote-environment-registry"; +import { ConnectionEnvironmentRow } from "../../features/connection/ConnectionEnvironmentRow"; + +export default function ConnectionsRouteScreen() { + const { + connectedEnvironments, + onReconnectEnvironment, + onRemoveEnvironmentPress, + onUpdateEnvironment, + } = useRemoteConnections(); + const insets = useSafeAreaInsets(); + const hasEnvironments = connectedEnvironments.length > 0; + const [expandedId, setExpandedId] = useState(null); + + const primaryFg = useThemeColor("--color-primary-foreground"); + const accentColor = useThemeColor("--color-icon-muted"); + + const handleToggle = useCallback((environmentId: string) => { + setExpandedId((prev) => (prev === environmentId ? null : environmentId)); + }, []); + + return ( + + ( + + + + + + ), + }} + /> + + {hasEnvironments ? ( + + {connectedEnvironments.map((environment, index) => ( + + handleToggle(environment.environmentId)} + onReconnect={onReconnectEnvironment} + onRemove={onRemoveEnvironmentPress} + onUpdate={onUpdateEnvironment} + /> + + ))} + + ) : ( + + + + + + No backends connected yet.{"\n"}Tap{" "} + + to add one. + + + )} + + + ); } diff --git a/apps/mobile/src/app/connections/new.tsx b/apps/mobile/src/app/connections/new.tsx index 0da9961cb2..1a05ea40c5 100644 --- a/apps/mobile/src/app/connections/new.tsx +++ b/apps/mobile/src/app/connections/new.tsx @@ -1,5 +1,253 @@ -import { NewConnectionRouteScreen } from "../../features/connection/NewConnectionRouteScreen"; +import { CameraView, useCameraPermissions } from "expo-camera"; +import { Stack, useLocalSearchParams, useRouter } from "expo-router"; +import { SymbolView } from "expo-symbols"; +import { useCallback, useEffect, useState } from "react"; +import { Alert, Pressable, ScrollView, View } from "react-native"; +import { useSafeAreaInsets } from "react-native-safe-area-context"; +import { useThemeColor } from "../../lib/useThemeColor"; -export default function ConnectionsNewRoute() { - return ; +import { AppText as Text, AppTextInput as TextInput } from "../../components/AppText"; +import { ErrorBanner } from "../../components/ErrorBanner"; +import { dismissRoute } from "../../lib/routes"; +import { ConnectionSheetButton } from "../../features/connection/ConnectionSheetButton"; +import { extractPairingUrlFromQrPayload } from "../../features/connection/pairing"; +import { useRemoteConnections } from "../../state/use-remote-environment-registry"; +import { buildPairingUrl, parsePairingUrl } from "../../features/connection/pairing"; + +export default function ConnectionsNewRouteScreen() { + const { + connectionError, + connectionPairingUrl, + connectionState, + onChangeConnectionPairingUrl, + onConnectPress, + } = useRemoteConnections(); + const router = useRouter(); + const params = useLocalSearchParams<{ mode?: string }>(); + const insets = useSafeAreaInsets(); + const [hostInput, setHostInput] = useState(""); + const [codeInput, setCodeInput] = useState(""); + const [isSubmitting, setIsSubmitting] = useState(false); + const [showScanner, setShowScanner] = useState(params.mode === "scan_qr"); + const [cameraPermission, requestCameraPermission] = useCameraPermissions(); + const [scannerLocked, setScannerLocked] = useState(false); + + const textColor = useThemeColor("--color-icon"); + const placeholderColor = useThemeColor("--color-placeholder"); + + const connectDisabled = + isSubmitting || connectionState === "connecting" || hostInput.trim().length === 0; + + useEffect(() => { + const { host, code } = parsePairingUrl(connectionPairingUrl); + setHostInput(host); + setCodeInput(code); + }, [connectionPairingUrl]); + + useEffect(() => { + if (connectionError) { + setIsSubmitting(false); + } + }, [connectionError]); + + const handleHostChange = useCallback((value: string) => { + setHostInput(value); + }, []); + + const handleCodeChange = useCallback((value: string) => { + setCodeInput(value); + }, []); + + const openScanner = useCallback(async () => { + if (cameraPermission?.granted) { + setScannerLocked(false); + setShowScanner(true); + return; + } + + const permission = await requestCameraPermission(); + if (permission.granted) { + setScannerLocked(false); + setShowScanner(true); + return; + } + + Alert.alert("Camera access needed", "Allow camera access to scan a backend pairing QR code."); + }, [cameraPermission?.granted, requestCameraPermission]); + + const closeScanner = useCallback(() => { + setShowScanner(false); + setScannerLocked(false); + }, []); + + const handleQrScan = useCallback( + ({ data }: { readonly data: string }) => { + if (scannerLocked) { + return; + } + + setScannerLocked(true); + + try { + const pairingUrl = extractPairingUrlFromQrPayload(data); + const { host, code } = parsePairingUrl(pairingUrl); + setHostInput(host); + setCodeInput(code); + onChangeConnectionPairingUrl(pairingUrl); + setShowScanner(false); + } catch (error) { + Alert.alert( + "Invalid QR code", + error instanceof Error ? error.message : "Scanned QR code was not recognized.", + ); + } finally { + setTimeout(() => { + setScannerLocked(false); + }, 600); + } + }, + [onChangeConnectionPairingUrl, scannerLocked], + ); + + const handleSubmit = useCallback(async () => { + setIsSubmitting(true); + + try { + const pairingUrl = buildPairingUrl(hostInput, codeInput); + onChangeConnectionPairingUrl(pairingUrl); + await onConnectPress(pairingUrl); + dismissRoute(router); + } catch { + setIsSubmitting(false); + } + }, [codeInput, hostInput, onChangeConnectionPairingUrl, onConnectPress, router]); + + return ( + + ( + { + if (showScanner) { + closeScanner(); + } else { + void openScanner(); + } + }} + > + + + ), + }} + /> + + + + {showScanner ? ( + cameraPermission?.granted ? ( + + + + ) : ( + + + Camera permission is required to scan a QR code. + + { + void openScanner(); + }} + /> + + ) + ) : ( + + + + Host + + + + + + + Pairing code + + + + + {connectionError ? : null} + + { + void handleSubmit(); + }} + /> + + )} + + + + ); } diff --git a/apps/mobile/src/app/index.tsx b/apps/mobile/src/app/index.tsx index 3dd100b138..f153db7013 100644 --- a/apps/mobile/src/app/index.tsx +++ b/apps/mobile/src/app/index.tsx @@ -1,5 +1,139 @@ -import { HomeRouteScreen } from "../features/home/HomeRouteScreen"; +import { Stack, useRouter } from "expo-router"; +import { useState } from "react"; +import { Pressable, Text as RNText, View, useColorScheme } from "react-native"; +import { useThemeColor } from "../lib/useThemeColor"; -export default function IndexRoute() { - return ; +import { buildThreadRoutePath } from "../lib/routes"; +import { ConnectionStatusDot } from "../features/connection/ConnectionStatusDot"; +import { useRemoteCatalog } from "../state/use-remote-catalog"; +import { useRemoteEnvironmentState } from "../state/use-remote-environment-registry"; +import { HomeScreen } from "../features/home/HomeScreen"; +import { EnvironmentConnectionState } from "@t3tools/client-runtime"; + +/* ─── Connection pill label ──────────────────────────────────────────── */ + +const CONNECTION_LABEL: Record = { + ready: "Connected", + connecting: "Connecting", + reconnecting: "Reconnecting", + disconnected: "Offline", + idle: "No backends", +}; + +/* ─── Route screen ───────────────────────────────────────────────────── */ + +export default function HomeRouteScreen() { + const { connectionState, hasRemoteActivity, projects, threads } = useRemoteCatalog(); + const { savedConnectionsById } = useRemoteEnvironmentState(); + const router = useRouter(); + const [searchQuery, setSearchQuery] = useState(""); + + const isDark = useColorScheme() === "dark"; + const iconColor = String(useThemeColor("--color-icon")); + const secondaryFg = isDark ? "#a3a3a3" : "#525252"; + + return ( + <> + ( + router.push("/connections")} + hitSlop={8} + style={{ + flexDirection: "row", + alignItems: "center", + gap: 8, + paddingHorizontal: 4, + paddingVertical: 4, + }} + > + + + {CONNECTION_LABEL[connectionState]} + + + ), + headerSearchBarOptions: { + placeholder: "Search threads", + onChangeText: (event) => { + setSearchQuery(event.nativeEvent.text); + }, + allowToolbarIntegration: true, + }, + }} + /> + + {/* Header left: plain text, no Liquid Glass button chrome */} + + + + + T3 Code + + + + Alpha + + + + + + + {/* Bottom toolbar: search + compose, visually split like iMessage */} + + + + router.push("/new")} + separateBackground + /> + + + { + router.push(buildThreadRoutePath(thread)); + }} + /> + + ); } diff --git a/apps/mobile/src/features/connection/ConnectionsRouteScreen.tsx b/apps/mobile/src/features/connection/ConnectionEnvironmentRow.tsx similarity index 61% rename from apps/mobile/src/features/connection/ConnectionsRouteScreen.tsx rename to apps/mobile/src/features/connection/ConnectionEnvironmentRow.tsx index bb6f1b3611..1c75bff8f8 100644 --- a/apps/mobile/src/features/connection/ConnectionsRouteScreen.tsx +++ b/apps/mobile/src/features/connection/ConnectionEnvironmentRow.tsx @@ -1,18 +1,14 @@ -import { Link, Stack } from "expo-router"; import { SymbolView } from "expo-symbols"; import { useCallback, useState } from "react"; -import { Pressable, ScrollView, View } from "react-native"; +import { Pressable, View } from "react-native"; import Animated, { FadeIn, FadeOut, LinearTransition } from "react-native-reanimated"; -import { useSafeAreaInsets } from "react-native-safe-area-context"; import { useThemeColor } from "../../lib/useThemeColor"; import { AppText as Text, AppTextInput as TextInput } from "../../components/AppText"; -import { cn } from "../../lib/cn"; -import { useRemoteConnections } from "../../state/use-remote-environment-registry"; import type { ConnectedEnvironmentSummary } from "../../state/remote-runtime-types"; import { ConnectionStatusDot } from "./ConnectionStatusDot"; -function EnvironmentRow(props: { +export function ConnectionEnvironmentRow(props: { readonly environment: ConnectedEnvironmentSummary; readonly expanded: boolean; readonly onToggle: () => void; @@ -159,94 +155,3 @@ function EnvironmentRow(props: { ); } - -export function ConnectionsRouteScreen() { - const { - connectedEnvironments, - onReconnectEnvironment, - onRemoveEnvironmentPress, - onUpdateEnvironment, - } = useRemoteConnections(); - const insets = useSafeAreaInsets(); - const hasEnvironments = connectedEnvironments.length > 0; - const [expandedId, setExpandedId] = useState(null); - - const primaryFg = useThemeColor("--color-primary-foreground"); - const accentColor = useThemeColor("--color-icon-muted"); - - const handleToggle = useCallback((environmentId: string) => { - setExpandedId((prev) => (prev === environmentId ? null : environmentId)); - }, []); - - return ( - - ( - - - - - - ), - }} - /> - - {hasEnvironments ? ( - - {connectedEnvironments.map((environment, index) => ( - - handleToggle(environment.environmentId)} - onReconnect={onReconnectEnvironment} - onRemove={onRemoveEnvironmentPress} - onUpdate={onUpdateEnvironment} - /> - - ))} - - ) : ( - - - - - - No backends connected yet.{"\n"}Tap{" "} - + to add one. - - - )} - - - ); -} diff --git a/apps/mobile/src/features/home/HomeRouteScreen.tsx b/apps/mobile/src/features/home/HomeRouteScreen.tsx deleted file mode 100644 index 480c9587ac..0000000000 --- a/apps/mobile/src/features/home/HomeRouteScreen.tsx +++ /dev/null @@ -1,138 +0,0 @@ -import { Stack, useRouter } from "expo-router"; -import { useState } from "react"; -import { Pressable, Text as RNText, View, useColorScheme } from "react-native"; -import { useThemeColor } from "../../lib/useThemeColor"; - -import { buildThreadRoutePath } from "../../lib/routes"; -import { ConnectionStatusDot } from "../connection/ConnectionStatusDot"; -import { useRemoteCatalog } from "../../state/use-remote-catalog"; -import { useRemoteEnvironmentState } from "../../state/use-remote-environment-registry"; -import { HomeScreen } from "./HomeScreen"; - -/* ─── Connection pill label ──────────────────────────────────────────── */ - -const CONNECTION_LABEL: Record = { - ready: "Connected", - connecting: "Connecting", - reconnecting: "Reconnecting", - disconnected: "Offline", - idle: "No backends", -}; - -/* ─── Route screen ───────────────────────────────────────────────────── */ - -export function HomeRouteScreen() { - const { connectionState, hasRemoteActivity, projects, threads } = useRemoteCatalog(); - const { savedConnectionsById } = useRemoteEnvironmentState(); - const router = useRouter(); - const [searchQuery, setSearchQuery] = useState(""); - - const isDark = useColorScheme() === "dark"; - const iconColor = String(useThemeColor("--color-icon")); - const secondaryFg = isDark ? "#a3a3a3" : "#525252"; - - return ( - <> - ( - router.push("/connections")} - hitSlop={8} - style={{ - flexDirection: "row", - alignItems: "center", - gap: 8, - paddingHorizontal: 4, - paddingVertical: 4, - }} - > - - - {CONNECTION_LABEL[connectionState] ?? "Unknown"} - - - ), - headerSearchBarOptions: { - placeholder: "Search threads", - onChangeText: (event) => { - setSearchQuery(event.nativeEvent.text); - }, - allowToolbarIntegration: true, - }, - }} - /> - - {/* Header left: plain text, no Liquid Glass button chrome */} - - - - - T3 Code - - - - Alpha - - - - - - - {/* Bottom toolbar: search + compose, visually split like iMessage */} - - - - router.push("/new")} - separateBackground - /> - - - { - router.push(buildThreadRoutePath(thread)); - }} - /> - - ); -} diff --git a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx index 5c057d45b3..0a179e8bb5 100644 --- a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx +++ b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx @@ -7,11 +7,12 @@ import type { RuntimeMode, ServerConfig as T3ServerConfig, } from "@t3tools/contracts"; +import { formatElapsed } from "@t3tools/shared/orchestrationTiming"; import * as Haptics from "expo-haptics"; -import { useCallback, useEffect, useMemo, useRef, useState } from "react"; -import { View } from "react-native"; +import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react"; +import { View, type LayoutChangeEvent } from "react-native"; import { Gesture, GestureDetector } from "react-native-gesture-handler"; -import { KeyboardAvoidingView, KeyboardStickyView } from "react-native-keyboard-controller"; +import { KeyboardStickyView } from "react-native-keyboard-controller"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { runOnJS } from "react-native-reanimated"; @@ -41,7 +42,7 @@ export interface ThreadDetailScreenProps { readonly httpBaseUrl: string | null; readonly bearerToken: string | null; readonly selectedThreadFeed: ReadonlyArray; - readonly activeWorkDurationLabel: string | null; + readonly activeWorkStartedAt: string | null; readonly activePendingApproval: PendingApproval | null; readonly respondingApprovalId: ApprovalRequestId | null; readonly activePendingUserInput: PendingUserInput | null; @@ -154,9 +155,42 @@ function useStreamingHaptics(threadId: string, feed: ReadonlyArray Date.now()); + + useEffect(() => { + const intervalId = setInterval(() => { + setNowMs(Date.now()); + }, 1_000); + return () => clearInterval(intervalId); + }, [props.startedAt]); + + const durationLabel = formatElapsed(props.startedAt, new Date(nowMs).toISOString()) ?? "0s"; + + return ( + + + + + + + + + + Working for {durationLabel} + + + + + ); +}); + +export const ThreadDetailScreen = memo(function ThreadDetailScreen(props: ThreadDetailScreenProps) { const { onOpenDrawer, onRefresh } = props; - const activeWorkIndicatorHeight = props.activeWorkDurationLabel ? 44 : 0; const insets = useSafeAreaInsets(); const agentLabel = `${props.selectedThread.modelSelection.provider} agent`; @@ -164,11 +198,15 @@ export function ThreadDetailScreen(props: ThreadDetailScreenProps) { const [composerExpanded, setComposerExpanded] = useState(false); const composerChrome = composerExpanded ? COMPOSER_EXPANDED_CHROME : COMPOSER_COLLAPSED_CHROME; const composerOverlapHeight = composerChrome + composerBottomInset; + const activeWorkIndicatorHeight = props.activeWorkStartedAt ? WORKING_INDICATOR_HEIGHT : 0; + const estimatedOverlayHeight = composerOverlapHeight + activeWorkIndicatorHeight; + const [measuredOverlayHeight, setMeasuredOverlayHeight] = useState(0); const [refreshing, setRefreshing] = useState(false); const showContent = props.showContent ?? true; const layoutVariant = props.layoutVariant ?? "compact"; const isSplitLayout = layoutVariant === "split"; useStreamingHaptics(props.selectedThread.id, props.selectedThreadFeed); + const feedBottomInset = Math.max(estimatedOverlayHeight, measuredOverlayHeight) + 8; const completeDrawerGesture = useCallback(() => { void Haptics.selectionAsync(); @@ -205,28 +243,32 @@ export function ThreadDetailScreen(props: ThreadDetailScreenProps) { [completeDrawerGesture, isSplitLayout], ); + const handleOverlayLayout = useCallback((event: LayoutChangeEvent) => { + const nextHeight = Math.ceil(event.nativeEvent.layout.height); + setMeasuredOverlayHeight((current) => + Math.abs(current - nextHeight) > 1 ? nextHeight : current, + ); + }, []); + return ( - {/* Feed area — KAV shrinks this when keyboard opens */} - - {showContent ? ( - void handleRefresh()} - /> - ) : ( - - )} - + {showContent ? ( + + ) : ( + + )} {/* Floating composer — sticks to keyboard via KeyboardStickyView */} {showContent ? ( @@ -234,69 +276,60 @@ export function ThreadDetailScreen(props: ThreadDetailScreenProps) { style={{ position: "absolute", bottom: 0, left: 0, right: 0 }} offset={{ closed: 0, opened: 0 }} > - {props.activeWorkDurationLabel ? ( - - - - - - - - - Working for {props.activeWorkDurationLabel} - + + {props.activeWorkStartedAt ? ( + + ) : null} + + {props.activePendingApproval || props.activePendingUserInput ? ( + + {props.activePendingApproval ? ( + + ) : null} + {props.activePendingUserInput ? ( + + ) : null} - - ) : null} + ) : null} - {props.activePendingApproval || props.activePendingUserInput ? ( - - {props.activePendingApproval ? ( - - ) : null} - {props.activePendingUserInput ? ( - - ) : null} - - ) : null} - - + + ) : null} ); -} +}); diff --git a/apps/mobile/src/features/threads/ThreadFeed.tsx b/apps/mobile/src/features/threads/ThreadFeed.tsx index a45c49df44..71971d3ac9 100644 --- a/apps/mobile/src/features/threads/ThreadFeed.tsx +++ b/apps/mobile/src/features/threads/ThreadFeed.tsx @@ -1,8 +1,9 @@ import * as Clipboard from "expo-clipboard"; import * as Haptics from "expo-haptics"; -import { LegendList, type LegendListRef } from "@legendapp/list/react-native"; +import { KeyboardAvoidingLegendList } from "@legendapp/list/keyboard"; +import { type LegendListRef } from "@legendapp/list/react-native"; import { SymbolView } from "expo-symbols"; -import { memo, useCallback, useEffect, useState, useRef } from "react"; +import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react"; import Markdown from "react-native-markdown-display"; import { Image, Pressable, ScrollView, View } from "react-native"; import { TouchableOpacity } from "react-native-gesture-handler"; @@ -91,137 +92,152 @@ function useMarkdownStyles(): MarkdownStyleSets { const userFenceBg = useThemeColor("--color-md-user-fence-bg"); const userFenceText = useThemeColor("--color-md-user-fence-text"); - const base = { - body: { - color: bodyColor, - fontSize: 15, - lineHeight: 22, - fontFamily: "DMSans_400Regular", - }, - paragraph: { marginTop: 0, marginBottom: 8 }, - bullet_list: { marginTop: 4, marginBottom: 4 }, - ordered_list: { marginTop: 4, marginBottom: 4 }, - list_item: { marginTop: 0, marginBottom: 4, flexDirection: "row" as const }, - strong: { fontWeight: "700" as const, color: strongColor, fontFamily: "DMSans_700Bold" }, - em: { fontStyle: "italic" as const }, - link: { color: linkColor, textDecorationLine: "underline" as const }, - blockquote: { - borderLeftWidth: 3, - borderLeftColor: blockquoteBorder, - backgroundColor: blockquoteBg, - paddingLeft: 12, - paddingVertical: 6, - marginLeft: 0, - marginVertical: 4, - borderRadius: 4, - }, - heading1: { - fontSize: 22, - lineHeight: 28, - fontWeight: "800" as const, - fontFamily: "DMSans_700Bold", - color: strongColor, - marginTop: 16, - marginBottom: 8, - }, - heading2: { - fontSize: 19, - lineHeight: 26, - fontWeight: "700" as const, - fontFamily: "DMSans_700Bold", - color: strongColor, - marginTop: 14, - marginBottom: 6, - }, - heading3: { - fontSize: 17, - lineHeight: 24, - fontWeight: "700" as const, - fontFamily: "DMSans_700Bold", - color: strongColor, - marginTop: 12, - marginBottom: 4, - }, - heading4: { - fontSize: 15, - lineHeight: 22, - fontWeight: "700" as const, - fontFamily: "DMSans_700Bold", - color: strongColor, - marginTop: 10, - marginBottom: 4, - }, - hr: { - backgroundColor: hrColor, - height: 1, - marginVertical: 12, - }, - }; + return useMemo(() => { + const base = { + body: { + color: bodyColor, + fontSize: 15, + lineHeight: 22, + fontFamily: "DMSans_400Regular", + }, + paragraph: { marginTop: 0, marginBottom: 8 }, + bullet_list: { marginTop: 4, marginBottom: 4 }, + ordered_list: { marginTop: 4, marginBottom: 4 }, + list_item: { marginTop: 0, marginBottom: 4, flexDirection: "row" as const }, + strong: { fontWeight: "700" as const, color: strongColor, fontFamily: "DMSans_700Bold" }, + em: { fontStyle: "italic" as const }, + link: { color: linkColor, textDecorationLine: "underline" as const }, + blockquote: { + borderLeftWidth: 3, + borderLeftColor: blockquoteBorder, + backgroundColor: blockquoteBg, + paddingLeft: 12, + paddingVertical: 6, + marginLeft: 0, + marginVertical: 4, + borderRadius: 4, + }, + heading1: { + fontSize: 22, + lineHeight: 28, + fontWeight: "800" as const, + fontFamily: "DMSans_700Bold", + color: strongColor, + marginTop: 16, + marginBottom: 8, + }, + heading2: { + fontSize: 19, + lineHeight: 26, + fontWeight: "700" as const, + fontFamily: "DMSans_700Bold", + color: strongColor, + marginTop: 14, + marginBottom: 6, + }, + heading3: { + fontSize: 17, + lineHeight: 24, + fontWeight: "700" as const, + fontFamily: "DMSans_700Bold", + color: strongColor, + marginTop: 12, + marginBottom: 4, + }, + heading4: { + fontSize: 15, + lineHeight: 22, + fontWeight: "700" as const, + fontFamily: "DMSans_700Bold", + color: strongColor, + marginTop: 10, + marginBottom: 4, + }, + hr: { + backgroundColor: hrColor, + height: 1, + marginVertical: 12, + }, + }; - const user = { - ...base, - paragraph: { marginTop: 0, marginBottom: 0 }, - code_inline: { - backgroundColor: userCodeBg, - color: userCodeText, - borderRadius: 5, - paddingHorizontal: 5, - paddingVertical: 1, - fontFamily: "ui-monospace", - fontSize: 13, - }, - code_block: { - backgroundColor: userFenceBg, - color: userFenceText, - borderRadius: 12, - padding: 12, - fontFamily: "ui-monospace", - fontSize: 13, - lineHeight: 19, - }, - fence: { - backgroundColor: userFenceBg, - color: userFenceText, - borderRadius: 12, - padding: 12, - fontFamily: "ui-monospace", - fontSize: 13, - lineHeight: 19, - }, - }; + const user = { + ...base, + paragraph: { marginTop: 0, marginBottom: 0 }, + code_inline: { + backgroundColor: userCodeBg, + color: userCodeText, + borderRadius: 5, + paddingHorizontal: 5, + paddingVertical: 1, + fontFamily: "ui-monospace", + fontSize: 13, + }, + code_block: { + backgroundColor: userFenceBg, + color: userFenceText, + borderRadius: 12, + padding: 12, + fontFamily: "ui-monospace", + fontSize: 13, + lineHeight: 19, + }, + fence: { + backgroundColor: userFenceBg, + color: userFenceText, + borderRadius: 12, + padding: 12, + fontFamily: "ui-monospace", + fontSize: 13, + lineHeight: 19, + }, + }; - const assistant = { - ...base, - code_inline: { - backgroundColor: codeBg, - color: codeText, - borderRadius: 5, - paddingHorizontal: 5, - paddingVertical: 1, - fontFamily: "ui-monospace", - fontSize: 13, - }, - code_block: { - backgroundColor: codeBg, - color: codeText, - borderRadius: 12, - padding: 12, - fontFamily: "ui-monospace", - fontSize: 13, - lineHeight: 19, - }, - fence: { - backgroundColor: codeBg, - color: codeText, - borderRadius: 12, - padding: 12, - fontFamily: "ui-monospace", - fontSize: 13, - lineHeight: 19, - }, - }; + const assistant = { + ...base, + code_inline: { + backgroundColor: codeBg, + color: codeText, + borderRadius: 5, + paddingHorizontal: 5, + paddingVertical: 1, + fontFamily: "ui-monospace", + fontSize: 13, + }, + code_block: { + backgroundColor: codeBg, + color: codeText, + borderRadius: 12, + padding: 12, + fontFamily: "ui-monospace", + fontSize: 13, + lineHeight: 19, + }, + fence: { + backgroundColor: codeBg, + color: codeText, + borderRadius: 12, + padding: 12, + fontFamily: "ui-monospace", + fontSize: 13, + lineHeight: 19, + }, + }; - return { user, assistant }; + return { user, assistant }; + }, [ + blockquoteBg, + blockquoteBorder, + bodyColor, + codeBg, + codeText, + hrColor, + linkColor, + strongColor, + userCodeBg, + userCodeText, + userFenceBg, + userFenceText, + ]); } function renderFeedEntry( @@ -527,10 +543,11 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) { return ( <> - { - await commands.onRefresh(); + await refreshSelectedThread(); await handleRefreshGitStatus(); - }, [commands, handleRefreshGitStatus]); + }, [handleRefreshGitStatus, refreshSelectedThread]); + + const handleOpenDrawer = useCallback(() => { + setDrawerVisible(true); + }, []); + + const handleOpenConnectionEditor = useCallback(() => { + void router.push("/connections"); + }, [router]); if (!environmentId || !threadId) { return ; @@ -211,7 +220,7 @@ export function ThreadRouteScreen() { httpBaseUrl={selectedEnvironmentConnection?.httpBaseUrl ?? null} bearerToken={selectedEnvironmentConnection?.bearerToken ?? null} selectedThreadFeed={composer.selectedThreadFeed} - activeWorkDurationLabel={composer.activeWorkDurationLabel} + activeWorkStartedAt={composer.activeWorkStartedAt} activePendingApproval={composer.activePendingApproval} respondingApprovalId={commands.respondingApprovalId} activePendingUserInput={composer.activePendingUserInput} @@ -224,8 +233,8 @@ export function ThreadRouteScreen() { activeThreadBusy={composer.activeThreadBusy} projectWorkspaceRoot={selectedThreadProject?.workspaceRoot ?? null} selectedThreadQueueCount={composer.selectedThreadQueueCount} - onOpenDrawer={() => setDrawerVisible(true)} - onOpenConnectionEditor={() => router.push("/connections")} + onOpenDrawer={handleOpenDrawer} + onOpenConnectionEditor={handleOpenConnectionEditor} onChangeDraftMessage={composer.onChangeDraftMessage} onPickDraftImages={composer.onPickDraftImages} onNativePasteImages={composer.onNativePasteImages} diff --git a/apps/mobile/src/features/threads/use-thread-composer-state.ts b/apps/mobile/src/features/threads/use-thread-composer-state.ts index 58e241f69b..d0241e7b19 100644 --- a/apps/mobile/src/features/threads/use-thread-composer-state.ts +++ b/apps/mobile/src/features/threads/use-thread-composer-state.ts @@ -9,7 +9,7 @@ import { MessageId, ThreadId, } from "@t3tools/contracts"; -import { deriveActiveWorkStartedAt, formatElapsed } from "@t3tools/shared/orchestrationTiming"; +import { deriveActiveWorkStartedAt } from "@t3tools/shared/orchestrationTiming"; import { Atom } from "effect/unstable/reactivity"; import { @@ -40,11 +40,6 @@ import { useRemoteCatalog } from "../../state/use-remote-catalog"; import { useSelectedThreadDetail } from "../../state/use-thread-detail"; import { useThreadSelection } from "../../state/use-thread-selection"; -const threadComposerNowTickAtom = Atom.make(Date.now()).pipe( - Atom.keepAlive, - Atom.withLabel("mobile:thread-composer:now-tick"), -); - const draftMessageByThreadKeyAtom = Atom.make>({}).pipe( Atom.keepAlive, Atom.withLabel("mobile:thread-composer:draft-message"), @@ -67,10 +62,6 @@ const userInputDraftsByRequestKeyAtom = Atom.make< Record> >({}).pipe(Atom.keepAlive, Atom.withLabel("mobile:user-input-drafts")); -function setNowTick(tick: number): void { - appAtomRegistry.set(threadComposerNowTickAtom, tick); -} - function setDraftMessage(threadKey: string, value: string): void { const current = appAtomRegistry.get(draftMessageByThreadKeyAtom); appAtomRegistry.set(draftMessageByThreadKeyAtom, { @@ -191,24 +182,6 @@ function setUserInputDraftCustomAnswer( }); } -function useWorkDurationTicker( - activeWorkStartedAt: string | null, - setNowTick: (tick: number) => void, -) { - useEffect(() => { - if (!activeWorkStartedAt) { - return; - } - - setNowTick(Date.now()); - const timer = setInterval(() => { - setNowTick(Date.now()); - }, 1_000); - - return () => clearInterval(timer); - }, [activeWorkStartedAt, setNowTick]); -} - function useQueueDrain(input: { readonly dispatchingQueuedMessageId: string | null; readonly queuedMessagesByThreadKey: Record>; @@ -271,7 +244,6 @@ export function useThreadComposerState() { const { threads } = useRemoteCatalog(); const { selectedThread: selectedThreadShell } = useThreadSelection(); const selectedThread = useSelectedThreadDetail(); - const nowTick = useAtomValue(threadComposerNowTickAtom); const draftMessageByThreadKey = useAtomValue(draftMessageByThreadKeyAtom); const draftAttachmentsByThreadKey = useAtomValue(draftAttachmentsByThreadKeyAtom); const dispatchingQueuedMessageId = useAtomValue(dispatchingQueuedMessageIdAtom); @@ -328,15 +300,6 @@ export function useThreadComposerState() { ); }, [queuedSendStartedAt, selectedThread, selectedThreadSessionActivity]); - const activeWorkDurationLabel = useMemo( - () => - activeWorkStartedAt - ? formatElapsed(activeWorkStartedAt, new Date(nowTick).toISOString()) - : null, - [activeWorkStartedAt, nowTick], - ); - useWorkDurationTicker(activeWorkStartedAt, setNowTick); - const activePendingApprovals = useMemo( () => (selectedThread ? derivePendingApprovals(selectedThread.activities) : []), [selectedThread], @@ -559,7 +522,7 @@ export function useThreadComposerState() { return { selectedThreadFeed, selectedThreadQueueCount, - activeWorkDurationLabel, + activeWorkStartedAt, activePendingApproval, activePendingUserInput, activePendingUserInputDrafts, diff --git a/apps/web/package.json b/apps/web/package.json index 362eeecc02..f9fcca2957 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -36,8 +36,8 @@ "effect": "catalog:", "lexical": "^0.41.0", "lucide-react": "^0.564.0", - "react": "^19.0.0", - "react-dom": "^19.0.0", + "react": "19.2.5", + "react-dom": "19.2.5", "react-markdown": "^10.1.0", "remark-gfm": "^4.0.1", "tailwind-merge": "^3.4.0", @@ -49,8 +49,8 @@ "@tailwindcss/vite": "^4.0.0", "@tanstack/router-plugin": "^1.161.0", "@types/babel__core": "^7.20.5", - "@types/react": "^19.0.0", - "@types/react-dom": "^19.0.0", + "@types/react": "~19.2.0", + "@types/react-dom": "~19.2.0", "@vitejs/plugin-react": "^6.0.0", "@vitest/browser-playwright": "^4.0.18", "babel-plugin-react-compiler": "^19.0.0-beta-e552027-20250112", diff --git a/bun.lock b/bun.lock index 3ede93f36d..9623b9fcf3 100644 --- a/bun.lock +++ b/bun.lock @@ -47,11 +47,8 @@ "@callstack/liquid-glass": "^0.7.1", "@effect/atom-react": "catalog:", "@expo-google-fonts/dm-sans": "^0.4.2", - "@gorhom/bottom-sheet": "^5", "@legendapp/list": "3.0.0-beta.44", "@react-native-menu/menu": "^2.0.0", - "@sethwebster/react-ethereal-input": "^0.4.0", - "@shopify/flash-list": "2.0.2", "@t3tools/client-runtime": "workspace:*", "@t3tools/contracts": "workspace:*", "@t3tools/shared": "workspace:*", @@ -67,7 +64,6 @@ "expo-glass-effect": "~55.0.8", "expo-haptics": "^55.0.9", "expo-image-picker": "~55.0.14", - "expo-linear-gradient": "~55.0.13", "expo-linking": "~55.0.12", "expo-paste-input": "^0.1.15", "expo-router": "~55.0.12", @@ -75,9 +71,8 @@ "expo-splash-screen": "~55.0.13", "expo-symbols": "~55.0.5", "expo-updates": "~55.0.16", - "punycode": "^2.3.1", - "react": "19.2.0", - "react-dom": "19.2.0", + "react": "19.2.5", + "react-dom": "19.2.5", "react-native": "0.83.4", "react-native-gesture-handler": "~2.30.0", "react-native-image-viewing": "^0.2.2", @@ -92,10 +87,10 @@ "uniwind": "^1.6.2", }, "devDependencies": { - "@types/react": "~19.2.10", + "@types/react": "~19.2.0", "babel-preset-expo": "~55.0.8", - "tailwindcss": "4.1.12", - "typescript": "~5.9.2", + "tailwindcss": "^4.0.0", + "typescript": "catalog:", }, }, "apps/server": { @@ -153,8 +148,8 @@ "effect": "catalog:", "lexical": "^0.41.0", "lucide-react": "^0.564.0", - "react": "^19.0.0", - "react-dom": "^19.0.0", + "react": "19.2.5", + "react-dom": "19.2.5", "react-markdown": "^10.1.0", "remark-gfm": "^4.0.1", "tailwind-merge": "^3.4.0", @@ -166,8 +161,8 @@ "@tailwindcss/vite": "^4.0.0", "@tanstack/router-plugin": "^1.161.0", "@types/babel__core": "^7.20.5", - "@types/react": "^19.0.0", - "@types/react-dom": "^19.0.0", + "@types/react": "~19.2.0", + "@types/react-dom": "~19.2.0", "@vitejs/plugin-react": "^6.0.0", "@vitest/browser-playwright": "^4.0.18", "babel-plugin-react-compiler": "^19.0.0-beta-e552027-20250112", @@ -663,10 +658,6 @@ "@formkit/auto-animate": ["@formkit/auto-animate@0.9.0", "", {}, "sha512-VhP4zEAacXS3dfTpJpJ88QdLqMTcabMg0jwpOSxZ/VzfQVfl3GkZSCZThhGC5uhq/TxPHPzW0dzr4H9Bb1OgKA=="], - "@gorhom/bottom-sheet": ["@gorhom/bottom-sheet@5.2.9", "", { "dependencies": { "@gorhom/portal": "1.0.14", "invariant": "^2.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-native": "*", "react": "*", "react-native": "*", "react-native-gesture-handler": ">=2.16.1", "react-native-reanimated": ">=3.16.0 || >=4.0.0-" }, "optionalPeers": ["@types/react", "@types/react-native"] }, "sha512-YwieCsEnTQnN2QW4VBKfCGszzxaw2ID7FydusEgqo7qB817fZ45N88kptcuNwZFnnauCjdyzKdrVBWmLmpl9oQ=="], - - "@gorhom/portal": ["@gorhom/portal@1.0.14", "", { "dependencies": { "nanoid": "^3.3.1" }, "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-MXyL4xvCjmgaORr/rtryDNFy3kU4qUbKlwtQqqsygd0xX3mhKjOLn6mQK8wfu0RkoE0pBE0nAasRoHua+/QZ7A=="], - "@img/colour": ["@img/colour@1.1.0", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="], "@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.2.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w=="], @@ -1033,8 +1024,6 @@ "@rollup/pluginutils": ["@rollup/pluginutils@5.3.0", "", { "dependencies": { "@types/estree": "^1.0.0", "estree-walker": "^2.0.2", "picomatch": "^4.0.2" }, "peerDependencies": { "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q=="], - "@sethwebster/react-ethereal-input": ["@sethwebster/react-ethereal-input@0.4.0", "", { "peerDependencies": { "react": ">=17.0.0", "react-dom": ">=17.0.0" } }, "sha512-47Cip+2+8x396C+yUUMyBqpxwQn5cIVr4SDqFEgsWro5YmiJr1EsGGoHiWcJY+gNlauk4fiKd0v6OfaUxGd34Q=="], - "@shikijs/core": ["@shikijs/core@4.0.2", "", { "dependencies": { "@shikijs/primitive": "4.0.2", "@shikijs/types": "4.0.2", "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4", "hast-util-to-html": "^9.0.5" } }, "sha512-hxT0YF4ExEqB8G/qFdtJvpmHXBYJ2lWW7qTHDarVkIudPFE6iCIrqdgWxGn5s+ppkGXI0aEGlibI0PAyzP3zlw=="], "@shikijs/engine-javascript": ["@shikijs/engine-javascript@4.0.2", "", { "dependencies": { "@shikijs/types": "4.0.2", "@shikijs/vscode-textmate": "^10.0.2", "oniguruma-to-es": "^4.3.4" } }, "sha512-7PW0Nm49DcoUIQEXlJhNNBHyoGMjalRETTCcjMqEaMoJRLljy1Bi/EGV3/qLBgLKQejdspiiYuHGQW6dX94Nag=="], @@ -1053,8 +1042,6 @@ "@shikijs/vscode-textmate": ["@shikijs/vscode-textmate@10.0.2", "", {}, "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg=="], - "@shopify/flash-list": ["@shopify/flash-list@2.0.2", "", { "dependencies": { "tslib": "2.8.1" }, "peerDependencies": { "@babel/runtime": "*", "react": "*", "react-native": "*" } }, "sha512-zhlrhA9eiuEzja4wxVvotgXHtqd3qsYbXkQ3rsBfOgbFA9BVeErpDE/yEwtlIviRGEqpuFj/oU5owD6ByaNX+w=="], - "@sinclair/typebox": ["@sinclair/typebox@0.27.10", "", {}, "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA=="], "@sindresorhus/is": ["@sindresorhus/is@4.6.0", "", {}, "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw=="], @@ -1651,8 +1638,6 @@ "expo-keep-awake": ["expo-keep-awake@55.0.6", "", { "peerDependencies": { "expo": "*", "react": "*" } }, "sha512-acJjeHqkNxMVckEcJhGQeIksqqsarscSHJtT559bNgyiM4r14dViQ66su7bb6qDVeBt0K7z3glXI1dHVck1Zgg=="], - "expo-linear-gradient": ["expo-linear-gradient@55.0.13", "", { "peerDependencies": { "expo": "*", "react": "*", "react-native": "*" } }, "sha512-Qz2T4jpkA15RIk29DBqI1TwW+8O9AN8MyC4TJPbh/5UnihH0yNNz3waplUO8Szh5OZ3czTGvtPQU4ysF3RDxwQ=="], - "expo-linking": ["expo-linking@55.0.13", "", { "dependencies": { "expo-constants": "~55.0.14", "invariant": "^2.2.4" }, "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-xbOqNWQCC5RGtXSW83ZCKOjRivyxO2zBouRYy/hgbsyrHUJhztMAjlq8RKYDUL8D6QVsH9Q81SNoq4Zhcn+4HQ=="], "expo-manifests": ["expo-manifests@55.0.15", "", { "dependencies": { "@expo/config": "~55.0.14", "expo-json-utils": "~55.0.2" }, "peerDependencies": { "expo": "*" } }, "sha512-p40ftXpgLTFGddFy35MYZMyjm/E6IQdn3l6fBZZ6zeraEzYLt+VLHYsplOL9ccTYvUSWKN9aOWRpoEYpyGVBVw=="], @@ -2329,8 +2314,6 @@ "pump": ["pump@3.0.4", "", { "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA=="], - "punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="], - "pure-rand": ["pure-rand@8.4.0", "", {}, "sha512-IoM8YF/jY0hiugFo/wOWqfmarlE6J0wc6fDK1PhftMk7MGhVZl88sZimmqBBFomLOCSmcCCpsfj7wXASCpvK9A=="], "quansync": ["quansync@1.0.0", "", {}, "sha512-5xZacEEufv3HSTPQuchrvV6soaiACMFnq1H8wkVioctoH3TRha9Sz66lOxRwPK/qZj7HPiSveih9yAyh98gvqA=="], @@ -2345,11 +2328,11 @@ "range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="], - "react": ["react@19.2.0", "", {}, "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ=="], + "react": ["react@19.2.5", "", {}, "sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA=="], "react-devtools-core": ["react-devtools-core@6.1.5", "", { "dependencies": { "shell-quote": "^1.6.1", "ws": "^7" } }, "sha512-ePrwPfxAnB+7hgnEr8vpKxL9cmnp7F322t8oqcPshbIQQhDKgFDW4tjhF2wjVbdXF9O/nyuy3sQWd9JGpiLPvA=="], - "react-dom": ["react-dom@19.2.0", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.0" } }, "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ=="], + "react-dom": ["react-dom@19.2.5", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.5" } }, "sha512-J5bAZz+DXMMwW/wV3xzKke59Af6CHY7G4uYLN1OvBcKEsWOs4pQExj86BBKamxl/Ik5bx9whOrvBlSDfWzgSag=="], "react-error-boundary": ["react-error-boundary@6.1.1", "", { "peerDependencies": { "react": "^18.0.0 || ^19.0.0" } }, "sha512-BrYwPOdXi5mqkk5lw+Uvt0ThHx32rCt3BkukS4X23A2AIWDPSGX6iaWTc0y9TU/mHDA/6qOSGel+B2ERkOvD1w=="], @@ -2595,7 +2578,7 @@ "tailwind-merge": ["tailwind-merge@3.5.0", "", {}, "sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A=="], - "tailwindcss": ["tailwindcss@4.1.12", "", {}, "sha512-DzFtxOi+7NsFf7DBtI3BJsynR+0Yp6etH+nRPTbpWnS2pZBaSksv/JGctNwSWzbFjp0vxSqknaUylseZqMDGrA=="], + "tailwindcss": ["tailwindcss@4.2.2", "", {}, "sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q=="], "tapable": ["tapable@2.3.2", "", {}, "sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA=="], @@ -2939,8 +2922,6 @@ "@shikijs/transformers/@shikijs/types": ["@shikijs/types@3.23.0", "", { "dependencies": { "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" } }, "sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ=="], - "@t3tools/web/tailwindcss": ["tailwindcss@4.2.2", "", {}, "sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q=="], - "@tailwindcss/node/tailwindcss": ["tailwindcss@4.2.1", "", {}, "sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw=="], "@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.9.2", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.1", "tslib": "^2.4.0" }, "bundled": true }, "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA=="], @@ -2959,8 +2940,6 @@ "@tailwindcss/vite/@tailwindcss/oxide": ["@tailwindcss/oxide@4.2.2", "", { "optionalDependencies": { "@tailwindcss/oxide-android-arm64": "4.2.2", "@tailwindcss/oxide-darwin-arm64": "4.2.2", "@tailwindcss/oxide-darwin-x64": "4.2.2", "@tailwindcss/oxide-freebsd-x64": "4.2.2", "@tailwindcss/oxide-linux-arm-gnueabihf": "4.2.2", "@tailwindcss/oxide-linux-arm64-gnu": "4.2.2", "@tailwindcss/oxide-linux-arm64-musl": "4.2.2", "@tailwindcss/oxide-linux-x64-gnu": "4.2.2", "@tailwindcss/oxide-linux-x64-musl": "4.2.2", "@tailwindcss/oxide-wasm32-wasi": "4.2.2", "@tailwindcss/oxide-win32-arm64-msvc": "4.2.2", "@tailwindcss/oxide-win32-x64-msvc": "4.2.2" } }, "sha512-qEUA07+E5kehxYp9BVMpq9E8vnJuBHfJEC0vPC5e7iL/hw7HR61aDKoVoKzrG+QKp56vhNZe4qwkRmMC0zDLvg=="], - "@tailwindcss/vite/tailwindcss": ["tailwindcss@4.2.2", "", {}, "sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q=="], - "@tanstack/react-router/@tanstack/react-store": ["@tanstack/react-store@0.9.3", "", { "dependencies": { "@tanstack/store": "0.9.3", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-y2iHd/N9OkoQbFJLUX1T9vbc2O9tjH0pQRgTcx1/Nz4IlwLvkgpuglXUx+mXt0g5ZDFrEeDnONPqkbfxXJKwRg=="], "@tanstack/router-generator/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],