feat(gate): add Engine gate launch check (S2.1)
CI / ci (push) Canceled after 0s
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]
This commit is contained in:
1 parent
232ac9d722
commit
753da2135a
11 files changed
+832
-3
No files matched your search
@@ -13,7 +13,11 @@ enum AppMetadata {
|
||||
}
|
||||
|
||||
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)
|
||||
@@ -25,5 +29,14 @@ struct ContentView: View {
|
||||
}
|
||||
.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 },
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user