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:
blumia committed 2026-11-21 01:16:10 +08:00
1 parent 9b53338908
commit 60d02083d3
11 files changed
+1272 -320

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'screens/home_screen.dart';
import 'screens/servers_screen.dart';
import 'screens/sessions_screen.dart';
import 'state.dart';
void main() {
@@ -45,7 +45,7 @@ class _OpenChamberAppState extends State<OpenChamberApp>
builder: (context, _) {
final home = app.client == null
? ServersScreen(app: app)
: SessionsScreen(app: app);
: HomeScreen(app: app);
return MaterialApp(
title: 'OpenChamber',
theme: ThemeData(