feat(ios): W3 UI layer + integration CI + ntfy docs

T-iOS-11: TerminalScreen/KeyBar/TerminalViewModel + KeyByteMap (byte-for-byte keybar.ts, arrows excluded from UIKeyCommand to preserve DECCKM)
T-iOS-12: PairingScreen/VM — confirm-before-network (zero-call assertions), §5.4 four-tier warnings, Host construction per contract ruling
T-iOS-13: SessionListScreen/VM — Tunables-paced polling with leak-free teardown, optimistic kill+rollback, pending via overlay (LiveSessionInfo has no pending field)
T-iOS-14: GateBanner/PlanGateSheet/AwayDigestView/GateViewModel — three-way mapping from SessionCore Affordance single source, tap-epoch guard, per-epoch haptics
T-iOS-16: IntegrationTests vs real Node server (10 tests: origin guards, mirror, kill-close vs exit-frame differential, 16MiB+ESC/C0 replay) + ios.yml own-sources coverage gate (red-once demoed)
T-iOS-17: ios/README.md ntfy chapter (read-only verification, file:line cites)
Verified: 224 unit + 10 integration tests green; 5/5 semantic spot-checks; zero Owns violations
This commit is contained in:
Yaojia Wang
2026-07-05 00:13:14 +02:00
parent 5c8c87fb7a
commit 5098643355
33 changed files with 5946 additions and 616 deletions

View File

@@ -1,7 +1,9 @@
// swift-tools-version: 6.0
// T-iOS-1 scaffold shell. Real live-server tests land in T-iOS-2
// (OriginSpikeTests, against `npm start`) and T-iOS-16 (CI integration).
// T-iOS-16 integration-CI package: Swift Testing suites against the REAL Node
// server (self-bootstrapped by ServerHarness spawns `tsx src/server.ts` on an
// ephemeral loopback port; see ServerHarness.swift for the run modes).
// Flat layout (plan §2): test sources live directly in ios/IntegrationTests/.
// `scripts/` holds the per-package coverage gate used by .github/workflows/ios.yml.
import PackageDescription
let package = Package(
@@ -14,7 +16,8 @@ let package = Package(
.testTarget(
name: "IntegrationTests",
dependencies: [.product(name: "WireProtocol", package: "WireProtocol")],
path: "."
path: ".",
exclude: ["scripts"]
),
],
swiftLanguageModes: [.v6]