feat: a transport seam, image previews, native forms, a phone drawer
- lib/api/transport.dart: TransportRequest/TransportResponse/Transport, with DirectTransport holding the old behaviour (HTTP CONNECT, SOCKS5/socks5h, self-signed and pinned certificates). Client goes through it, so a relay tunnel only adds an implementation. - User rows decode the server's inline attachment data and open the shared image preview on tap; the local path stays the fallback. - The agent's native forms: models from @opencode/client, the form list, replies and cancels, form.* events, and a dock above the composer with when-rules and required-field validation (a switch must be on). - HomeScreen: the session list is the phone's left drawer and a persistent column from 840 px, the chat beside it; the newest session opens on start. - 0.3.10 (310).
This commit is contained in:
1 parent
9b53338908
commit
60d02083d3
11 files changed
+1272
-320
No files matched your search
@@ -5,23 +5,25 @@ Android first. This branch (`flutter`) is a framework evaluation: the same
|
||||
feature set as the earlier Asuka/Go and MyGo attempts, reimplemented in
|
||||
Flutter to compare mobile UI maturity.
|
||||
|
||||
Status: 0.3.9 — servers (passwordless / password login, HTTP/HTTPS and
|
||||
Status: 0.3.10 — servers (passwordless / password login, HTTP/HTTPS and
|
||||
SOCKS5/socks5h proxy, self-signed certificates and pinning), session list with search and live
|
||||
events, chat with streaming Markdown and full history paging, tool steps
|
||||
grouped per turn (icon, one-line summary, foldable run) with image previews, a
|
||||
context usage ring with a detail sheet, model/agent switching (Build/Plan only,
|
||||
current one checked), copy / fork / revert, attachments (photos/files),
|
||||
permissions. Android 7.0 (API 24)+, plus a Linux desktop target used for local
|
||||
testing.
|
||||
current one checked), copy / fork / revert, attachments (photos/files, kept
|
||||
after a reload), the agent's native forms, permissions. A phone opens the
|
||||
session list as the left drawer and a wide window (tablet, desktop) shows it
|
||||
beside the chat. Android 7.0 (API 24)+, plus a Linux desktop target used for
|
||||
local testing.
|
||||
|
||||
## What is here
|
||||
|
||||
| Path | What |
|
||||
| --- | --- |
|
||||
| `lib/api/` | Dart OpenChamber client: auth, sessions, messages, SSE, models/agents, permissions, prompt/interrupt/fork/revert, `/api/fs/raw`; HTTP/HTTPS proxies via `HttpClient.findProxy`, SOCKS5/socks5h via `socks5_proxy`, pinning/self-signed via `badCertificateCallback` |
|
||||
| `lib/api/` | Dart OpenChamber client: auth, sessions, messages, SSE, models/agents, forms, permissions, prompt/interrupt/fork/revert, `/api/fs/raw`; every request goes through `Transport` (today `DirectTransport`: HTTP/HTTPS proxies via `HttpClient.findProxy`, SOCKS5/socks5h via `socks5_proxy`, pinning/self-signed via `badCertificateCallback`), so a relay tunnel only adds an implementation |
|
||||
| `lib/storage.dart` | Saved servers in `shared_preferences`, tokens in `flutter_secure_storage` (Android Keystore) |
|
||||
| `lib/state.dart` | The app state: connections, live sessions, the open chat, and SSE event folding |
|
||||
| `lib/screens/` | Servers, sessions, chat (streaming Markdown via `gpt_markdown`, composer, sheets); the message list is reversed so older pages grow above without moving the viewport |
|
||||
| `lib/screens/` | Servers, the connected shell (`home_screen.dart`: drawer on a phone, two columns from 840 px), sessions, chat (streaming Markdown via `gpt_markdown`, composer, sheets, the native form dock, the files sidebar); the message list is reversed so older pages grow above without moving the viewport |
|
||||
| `lib/widgets/` | The context usage ring |
|
||||
|
||||
Markdown rendering reuses **`gpt_markdown`** (BSD-3), the Flutter AI-output renderer
|
||||
|
||||
Reference in new issue
Block a user