Add a Go client for OpenChamber built with Asuka's native widgets. - internal/ocapi: health, password-to-device-token auth, session and message paging, prompt/interrupt/model/agent, permissions, SSE events, HTTP/SOCKS5 proxies and certificate pinning - internal/storage: connection settings plus a device token in the platform keystore, with a per-install id for server-side dedupe - internal/appui: connect, session list and chat screens with streaming Markdown, reasoning/tool folding, permission cards and session actions - netcfg: native module that enables cleartext HTTP in release builds - cmd/ocprobe: terminal probe for the API - headless UI tests (uitest) and the research/plan document
18 lines
641 B
Swift
18 lines
641 B
Swift
// swift-tools-version:5.9
|
|
// The netcfg package's Swift, for iOS and macOS: the Asuka CLI builds it
|
|
// with the apps that import the package. Its dependencies (Swift
|
|
// packages) go here, as any package's.
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "NetcfgNative",
|
|
platforms: [.iOS("16.0"), .macOS("11.0")],
|
|
products: [.library(name: "NetcfgNative", targets: ["NetcfgNative"])],
|
|
dependencies: [
|
|
.package(url: "https://github.com/egoist/asuka", from: "0.1.0"),
|
|
],
|
|
targets: [
|
|
.target(name: "NetcfgNative", dependencies: [.product(name: "Asuka", package: "asuka")], path: "swift"),
|
|
]
|
|
)
|