luxe 0.1.4: remembered models, wheel-driven lists, and a steadier phone app
- luxe starts on the model you last chose in this project, then the last one anywhere. Signing in opens the model picker instead of choosing for you. - Every list in a modal takes the mouse wheel and a draggable scrollbar. - The phone app shows reasoning in full, stays put while you read back through a long session, and shows a question's answer on its card. - On Windows, luxe update replaces the running luxe, and a signed-in install no longer sees setup again. - The file tree no longer shows "engine busy" in a large project, loop output is easier to follow, and the name is written lowercase. The CHANGELOG has the full list.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! Ancestry — whether a process was started, at any depth, by another.
|
||||
//!
|
||||
//! The tripwire that keeps a Luxe's own children (the agent's `bash`, a hook) from joining its
|
||||
//! The tripwire that keeps a luxe's own children (the agent's `bash`, a hook) from joining its
|
||||
//! session and answering their own prompts. A tripwire, not a wall: a process that detaches itself
|
||||
//! leaves the chain, and the documentation says so. Blocking: run it off the async runtime.
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
//! Live sessions — which Luxes on this machine can be joined, and where.
|
||||
//!
|
||||
//! Each running Luxe with an endpoint leaves a small record in the runtime folder, named for its
|
||||
//! process, and takes it away when it stops. A record left by a Luxe that died is found out by the
|
||||
//! Each running luxe with an endpoint leaves a small record in the runtime folder, named for its
|
||||
//! process, and takes it away when it stops. A record left by a luxe that died is found out by the
|
||||
//! one test that matters: its endpoint no longer answers.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::io;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
/// One running Luxe that can be joined.
|
||||
/// One running luxe that can be joined.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct LiveSession {
|
||||
/// The Luxe's process id
|
||||
/// The luxe's process id
|
||||
pub pid: u32,
|
||||
/// Session it is running
|
||||
pub session_id: String,
|
||||
@@ -23,7 +23,7 @@ pub struct LiveSession {
|
||||
pub luxe_version: String,
|
||||
}
|
||||
|
||||
/// This Luxe's record in the runtime folder, removed when dropped.
|
||||
/// This luxe's record in the runtime folder, removed when dropped.
|
||||
pub struct Publication {
|
||||
path: PathBuf,
|
||||
}
|
||||
@@ -39,7 +39,7 @@ impl LiveSession {
|
||||
}
|
||||
|
||||
impl Publication {
|
||||
/// Rewrites the record, as when the Luxe moves to another session.
|
||||
/// Rewrites the record, as when the luxe moves to another session.
|
||||
pub fn update(&self, session: &LiveSession) -> io::Result<()> {
|
||||
let bytes = serde_json::to_vec_pretty(session).map_err(io::Error::other)?;
|
||||
crate::fs_atomic::replace_private(&self.path, &bytes)
|
||||
@@ -64,7 +64,7 @@ pub fn live_sessions(dir: &Path) -> Vec<LiveSession> {
|
||||
found
|
||||
}
|
||||
|
||||
/// [`live_sessions`] whose Luxe is still running: one that crashed leaves its record behind.
|
||||
/// [`live_sessions`] whose luxe is still running: one that crashed leaves its record behind.
|
||||
///
|
||||
/// Checked by process id rather than by connecting, since a connection is a client joining, and the
|
||||
/// terminal running the session says so each time.
|
||||
|
||||
@@ -35,7 +35,7 @@ async fn the_socket_is_private_and_goes_with_the_listener() {
|
||||
assert_eq!(mode(&run), 0o700, "the folder");
|
||||
assert_eq!(mode(&socket), 0o600, "the socket");
|
||||
drop(listener);
|
||||
assert!(!socket.exists(), "a stopped Luxe leaves no socket behind");
|
||||
assert!(!socket.exists(), "a stopped luxe leaves no socket behind");
|
||||
assert!(connect(&socket.to_string_lossy()).await.is_err());
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! the anonymous account, and reading is the whole transcript; and a pipe can be opened across the
|
||||
//! network while the Server service runs. So every instance is created with a descriptor granting
|
||||
//! this user alone, remote clients are refused, and the first instance must be new, so nothing can
|
||||
//! claim the name before Luxe does.
|
||||
//! claim the name before luxe does.
|
||||
|
||||
use super::{EndpointError, Joined, LocalStream};
|
||||
use std::path::Path;
|
||||
|
||||
Reference in New Issue
Block a user