CI / test (push) Failing after 12m30s
Settings > Session "Add or remove faces…" (and "Remove…" on a face) opens a compositor-drawn Face unlock window instead of running root steps one by one: - chandra-face camera runs as the user (no password): it streams a small live picture with the face box and a cropped thumbnail per snap; the snaps' embeddings stay in that process, nothing is written to disk. - Click a snap to drop it; mark saved faces Remove/Keep. - Apply saves the snaps as one face and removes the marked ones in one root `chandra-face apply` (JSON on stdin, validated) through run0/pkexec: one password prompt. - New raster host function image-pixels (host-wasm, wasmhost, native) for the window's pictures. Tests: camera session and apply in face/test_face.py; the window end to end against a fake tool in compositor/host/face_test.mbt. Docs explain why the change itself still needs root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hhiJfJNAYqWzQiuKMf
65 lines
1.5 KiB
Plaintext
65 lines
1.5 KiB
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "chandra/desktop/lib/launcher"
|
|
|
|
import {
|
|
"chandra/desktop/interface/chandra/desktop/theme",
|
|
"chandra/desktop/interface/chandra/desktop/types",
|
|
}
|
|
|
|
// Values
|
|
pub fn action_at(Array[@types.AppEntry], State, @types.Point) -> Int32
|
|
|
|
pub let action_logout : Int32
|
|
|
|
pub let action_power_off : Int32
|
|
|
|
pub let action_reload : Int32
|
|
|
|
pub let action_restart : Int32
|
|
|
|
pub let action_suspend : Int32
|
|
|
|
pub fn close(State) -> Unit
|
|
|
|
pub fn filter(Array[@types.AppEntry], String) -> Array[@types.AppEntry]
|
|
|
|
pub fn handle_event(Array[@types.AppEntry], State, Target, @types.InputEvent, (String) -> Result[Unit, String], session? : (Int32) -> Unit) -> Bool
|
|
|
|
pub fn needs_confirm(Int32) -> Bool
|
|
|
|
pub fn popup_size(Array[@types.AppEntry], State) -> @types.Size
|
|
|
|
pub let popup_w : Int32
|
|
|
|
pub fn render_button(@types.Size, @theme.Tokens, State) -> Array[@types.DrawOp]
|
|
|
|
pub fn render_popup(Array[@types.AppEntry], @theme.Tokens, State, icon? : (String) -> UInt32) -> Array[@types.DrawOp]
|
|
|
|
pub fn row_at(Array[@types.AppEntry], State, @types.Point) -> Int32
|
|
|
|
pub let session_actions : Array[String]
|
|
|
|
pub fn shown_rows(Array[@types.AppEntry], State) -> Array[@types.AppEntry]
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub struct State {
|
|
mut open : Bool
|
|
mut query : String
|
|
mut hover : Int32
|
|
mut error : String
|
|
mut hover_action : Int32
|
|
mut armed : Int32
|
|
}
|
|
pub fn State::new() -> Self
|
|
|
|
pub(all) enum Target {
|
|
Widget
|
|
Popup
|
|
}
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|