Files
chandra/compositor/renderer/pkg.generated.mbti
T
Claude 9f7489cfea
CI / test (push) Failing after 12m30s
Face unlock window: live camera preview, Snap, thumbnails, one password on Apply
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
2026-11-26 02:36:29 +00:00

61 lines
1.2 KiB
Plaintext

// Generated using `moon info`, DON'T EDIT IT
package "chandra/desktop/compositor/renderer"
import {
"chandra/desktop/compositor/scene",
}
// Values
pub fn add_image(Pixmap) -> UInt32
pub fn blit_shm_surface(Pixmap, @scene.ShmBufferSnapshot, @scene.Rect) -> Unit
pub fn decode_png(Bytes) -> Pixmap?
pub fn draw_ops(Pixmap, Array[@scene.DrawOp], Int32, Int32) -> Unit
pub fn encode_png(Pixmap) -> Bytes
pub fn encode_png_compressed(Pixmap) -> Bytes
pub fn encode_ppm(Pixmap) -> Bytes
pub fn render_scene(@scene.SceneGraph) -> Pixmap
pub fn scale_pixmap(Pixmap, Int32, Int32) -> Pixmap
pub fn set_glyph_source((Int32, Int32, Bool, Bool) -> Glyph) -> Unit
pub fn set_image(UInt32, Pixmap) -> UInt32
pub fn shm_thumbnail(@scene.ShmBufferSnapshot, Int32, Int32) -> Pixmap?
pub fn text_width(String, Int32, Bool, Bool) -> Int32
pub fn zlib_compress(FixedArray[Byte]) -> Array[Byte]
// Errors
// Types and methods
pub(all) struct Glyph {
w : Int32
h : Int32
xoff : Int32
yoff : Int32
advance : Int32
coverage : Bytes
embolden : Bool
}
pub(all) struct Pixmap {
width : Int32
height : Int32
data : FixedArray[Byte]
}
pub fn Pixmap::new(Int32, Int32) -> Self
pub fn Pixmap::pixel(Self, Int32, Int32) -> @scene.Rgba?
// Type aliases
// Traits