Switch from Asuka to MyGo, keeping the API client and the feature set: - servers: saved servers, passwordless and password login, proxy, self-signed certificates, per-server device tokens (Keystore), connect form, instance list sheet with switch/disconnect - sessions: virtualized list, search, new session, rename/archive/delete, running indicator, event stream keeps it live - chat: pushed window with system back bar, streaming Markdown via ui/markdown, reasoning and tool rows with image previews, footer menu (read aloud via a Kotlin TTS plugin, copy, fork), user message menu (copy, revert, fork), context usage ring and detail sheet, attachments (photos/files via the document picker), permissions - release builds allow plain http:// LAN servers (Go's net/http dials directly, no cleartext manifest needed) - a local fork of MyGo (third_party/mygo) lowers the Android host's minSdk to 24 (Android 7.0); Go 1.27.4 via mise Version 0.3.0.
39 lines
1.3 KiB
Go
39 lines
1.3 KiB
Go
//go:build !darwin && !linux && !windows
|
|
|
|
package native
|
|
|
|
import "errors"
|
|
|
|
// library is the loaded implementation of a module, which this system
|
|
// cannot load.
|
|
type library struct{}
|
|
|
|
func (m *Module) load() (*library, error) { return nil, errors.ErrUnsupported }
|
|
|
|
func isMainThread() bool { return false }
|
|
|
|
func (l *library) invoke(m *Module, name string, h uint64, args []byte, call uint64) reply {
|
|
return reply{status: statusError, data: errorBlock(errors.ErrUnsupported)}
|
|
}
|
|
|
|
func (l *library) sym(m *Module, name string) (uintptr, error) { return 0, errors.ErrUnsupported }
|
|
|
|
func (l *library) direct(fn uintptr, h uint64, args []uintptr) uintptr { return 0 }
|
|
|
|
func (l *library) directSym(m *Module, name string, h uint64, args []uintptr) uintptr { return 0 }
|
|
|
|
func freeBlock(uintptr) {}
|
|
|
|
func (l *library) release(m *Module, h uint64) {}
|
|
func (l *library) cancel(m *Module, call uint64) {}
|
|
func (l *library) next(m *Module, call uint64) {}
|
|
func (l *library) resume(m *Module, cont uint64, status int64, data []byte) {}
|
|
|
|
// LibraryName is the file of a module's implementation on Linux.
|
|
func LibraryName(module string) string { return "lib" + module + ".so" }
|
|
|
|
func allocate(n int) uintptr { return 0 }
|
|
func deallocate(p uintptr) {}
|
|
|
|
func releaseSurface(uintptr) {}
|