CI / ci (push) Canceled after 0s
Block every app launch behind an Engine gate per wayfinder map #12: discover the user-installed hermes binary via the documented six-path probe (#36), health-check it with acp --check (stdin closed, 5 s per-candidate timeout, exit-status branching), version via acp --version, and record every completed check in Application Support state.json (#39). The gate is a blocking sheet with checking/pass/fail cards (#38/#40), app-scoped so only the first window per launch auto-checks (#41); an About window mirrors the state file read-only. Provisioning (#13) has a stub seam at onEnginePass. 12 unit tests drive the real Process path with fake hermes binaries; build, tests, swiftformat, swiftlint all green. Closes #42 [Generated by AI]
43 lines
889 B
Swift
43 lines
889 B
Swift
//
|
|
// ContentView.swift
|
|
// Museion
|
|
//
|
|
// Created by Alexander Kucera on 26.08.26.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
enum AppMetadata {
|
|
nonisolated static let name = "Museion"
|
|
nonisolated static let tagline = "The Agentic Writing Environment"
|
|
}
|
|
|
|
struct ContentView: View {
|
|
@Environment(AppGateState.self) private var gate
|
|
|
|
var body: some View {
|
|
@Bindable var gate = gate
|
|
|
|
VStack(spacing: 8) {
|
|
Image(systemName: "books.vertical")
|
|
.font(.largeTitle)
|
|
Text(AppMetadata.name)
|
|
.font(.title)
|
|
.bold()
|
|
Text(AppMetadata.tagline)
|
|
.foregroundStyle(.secondary)
|
|
}
|
|
.padding(32)
|
|
.frame(minWidth: 480, minHeight: 320)
|
|
.sheet(isPresented: $gate.gateRaised) {
|
|
EngineGateView(
|
|
model: gate.gateModel,
|
|
onEnginePass: {
|
|
// Ticket #41: provisioning (#13) fires here in parallel — stub until #13 lands.
|
|
},
|
|
onDismiss: { gate.gateRaised = false },
|
|
)
|
|
}
|
|
}
|
|
}
|