Commit graph

21 commits

Author SHA1 Message Date
Garfie
9159bcf62e fix(cache): route Android temp files into named subdirs for logout sweep
Five Android producers wrote temp files directly into cacheDir root,
bypassing CommonSessionCacheCleaner which only sweeps entries listed in
CACHE_SUBDIRECTORIES. Moved each producer to its own named subdir and
registered the new names so logout actually clears them.
2026-04-14 21:30:31 -05:00
Garfie
0483581f23 feat(favorites): move bookmarks to server-backed tags with offline cache 2026-04-13 19:40:14 -05:00
Garfie
63d87c843b cleanup: burn down detekt baselines and rename Compose Resources package 2026-04-11 12:35:19 -05:00
Garfie
b4872e4de0 feat: add detekt-koin, .editorconfig, GitHub Actions CI for android + ios 2026-04-09 23:48:41 -05:00
Garfie Chiu
1f252790e2
Merge pull request #27 from garfiec/fix/mcp-type-segmented-button-height
fix(settings): equalize MCP server type segmented button heights
2026-04-08 23:24:42 -05:00
Garfie
ede2311027 fix(settings): equalize MCP server type segmented button heights when text wraps 2026-04-08 22:45:07 -05:00
Garfie
e624c9f39e fix(chat): apply safe area padding to iOS chat input 2026-04-08 22:21:32 -05:00
Garfie
e8bda6ca05 refactor: replace fully-qualified names with proper imports across codebase 2026-04-08 19:15:49 -05:00
Garfie
00055c515e refactor: extract supporting types to own files and organize into sub-packages 2026-04-07 21:49:15 -05:00
Garfie
fccc0ba0bb fix: iOS LaTeX rendering by extracting shared markdown parser to commonMain 2026-04-06 19:42:40 -05:00
Garfie
4c0b76a9b3 fix: iOS image rendering and consolidate content part dispatch to commonMain
- Configure Coil ImageLoader with authenticated Ktor HttpClient on iOS
- Extract ContentPartRenderer sub-composables and tool call dispatch into shared commonMain (SharedContentParts.kt, ToolCallParsing.kt)
- Add missing iOS handlers: AGENT_UPDATE, VIDEO_URL null fallback
- Fix error text fallback inconsistency across platforms
- Add memory cache to iOS ImageLoader
2026-04-06 12:25:48 -05:00
Garfie
40ee348b12 refactor: migrate from Navigation Compose 2 to Navigation Compose 3 2026-04-04 22:26:27 -05:00
Garfie
2756efa812 refactor: convert navigation to type-safe routes with polymorphic serialization 2026-04-04 21:39:25 -05:00
Garfie
00056b634b chore: rename project from LibreChat Android to LibreChat Mobile 2026-04-03 16:56:36 -05:00
Garfie
e5c5b549db chore: rename package com.librechat to com.garfiec.librechat 2026-04-03 16:12:37 -05:00
Garfie
c627940a31 Upgrade to Kotlin 2.3.20, CMP 1.11, AGP 9.1, Gradle 9.4
- Kotlin 2.1.20 → 2.3.20, KSP → 2.3.6
- Compose Multiplatform 1.8.0 → 1.11.0-beta01
- AGP 8.7.3 → 9.1.0, Gradle 8.11.1 → 9.4.1
- Koin 4.1.0 → 4.2.0, Ktor 3.0.3 → 3.4.2
- kotlinx-serialization 1.7.3 → 1.10.0
- kotlinx-datetime 0.6.1 → 0.7.1 (Instant → kotlin.time)
- Room 2.7.1 → 2.8.4, sqlite-bundled 2.5.0 → 2.6.2
- Lifecycle 2.8.7 → 2.9.0, Navigation 2.8.5 → 2.9.2
- SKIE 0.10.10 → 0.10.11, Coil 3.1.0 → 3.3.0
- Kermit 2.0.4 → 2.1.0, DataStore 1.1.1 → 1.2.1
- Paging 3.3.5 → 3.4.2, Media3 1.2.0 → 1.10.0
- Markdown renderer 0.27.0 → 0.39.2
- compileSdk 35 → 36, Compose BOM → 2025.05.00
2026-04-02 19:54:58 -05:00
Garfie
770603e466 KMP iOS migration
Complete Kotlin Multiplatform migration with iOS parity:
- All 13 modules converted to KMP (commonMain + androidMain + iosMain)
- 100% feature parity: auth, chat, SSE streaming, conversations,
  settings, agents, files, voice input, TTS, OAuth, file picker,
  clipboard paste
- Platform consolidation: DataStore path, SessionCacheCleaner,
  bubble layouts, ChatInput core, MIME types, mention parsing,
  TextField styling, FilterChip components extracted to commonMain
- iOS crash reporting via Kotlin/Native exception hook
- YAML parsing via custom pure-Kotlin parser (zero dependencies)
- Dependency health: Timber removed, kaml replaced, FuzzyWuzzy removed,
  security-crypto stabilized
- CONTRIBUTING.md
- Gradle configuration cache enabled
2026-04-02 19:54:58 -05:00
Garfie
1868bab690 Add linting and static code analysis 2026-03-28 12:49:37 -05:00
Garfie
e4effcf40f Migrate DI from Hilt to Koin 4.1 2026-03-28 09:05:14 -05:00
Garfie
d30988f8b4 Sync upstream to v0.8.4
Breaking changes:
- 2FA enable changed from GET to POST with OTP verification body
- Backup code regeneration now requires OTP verification
- Account deletion requires OTP when 2FA is enabled
- New shared OtpVerificationDialog component in core/ui
- Fix OTP digit box layout (weight-based instead of fixed size)

Additive changes:
- Add effort (AnthropicEffort) and thinkingLevel (Google) fields to
  Conversation, Preset, and ChatRequest models
- Add tool_options to Agent model and create/update requests
- Add artifacts field to EphemeralAgent
- Add remoteAgents to InterfaceConfig
- Add programmatic_tools and deferred_tools agent capabilities
- Add thinkingLevel parameter to EndpointParameterRegistry

SSE hardening:
- Implement mapSyncEvent() for resume state-snapshot protocol
- Preserve partial stream content on disconnect (don't wipe visible text)
- Persist conversation to Room on stream creation (not just on Final)
- Auto-reconnect SSE stream when network recovers via ConnectivityObserver
- Network-aware retries in SseClient (wait for connectivity, don't burn attempts)
- Add StreamEvent.Retrying for retry progress UI feedback
- Lazy connectivity observation (only when network error occurs)
- Clear draft/streaming state on SSE stream expiry
- Add isNetworkError flag to StreamEvent.Error for typed detection

Code quality:
- Remove [Comparison] debug Timber logs (perf overhead on every SSE event)
- Replace Log.d with Timber.d across feature modules
- Extract hardcoded OTP dialog strings to strings.xml for localization
- Parameterize OtpVerificationDialog labels for localizability
- Add auto-submit guard with reset on failure for OTP input
- Replace fake QR code generator with copyable otpauth:// URI
- Replace fragile OTP string matching with HTTP status code checks
- Consolidate identical request classes into OtpVerificationRequest
- Share isHttpStatus helper across settings module
- Remove duplicate verifyTempToken method (identical to verifyTwoFactor)
- Remove duplicate 2FA dialog composables from AccountSettingsScreen
- Extract shared resume stream logic to reduce duplication
- Guard no-op retryInfo state updates
- Move ApiException to core:common for cross-module access
- Document SseEventMapper single-stream threading constraint

Bump SUPPORTED_BACKEND_VERSION to 0.8.4, advance upstream submodule.
2026-03-26 17:33:41 -05:00
Garfie
f182b2b82a Initial release 2026-03-09 22:00:00 -05:00