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,4 +1,4 @@
|
||||
// A Luxe of the test's own: a session in a fresh git project, driven by the mock model, and a
|
||||
// A luxe of the test's own: a session in a fresh git project, driven by the mock model, and a
|
||||
// bridge serving it, all under one temporary directory, so nothing touches the real config.
|
||||
|
||||
import { spawn, execFileSync } from "node:child_process";
|
||||
@@ -17,11 +17,11 @@ export const LOGIN = "e2e@luxe.test";
|
||||
/** The `luxe` to test: `LUXE_BIN`, or the debug build. */
|
||||
const LUXE = process.env.LUXE_BIN ?? join(REPO, "target/debug/luxe");
|
||||
|
||||
/** Starts a session and a bridge for the mock model on `modelPort`. */
|
||||
export async function startHost(modelPort) {
|
||||
/** Starts a session and a bridge for the mock model on `modelPort`, in a project named `name`. */
|
||||
export async function startHost(modelPort, name = "project") {
|
||||
const root = mkdtempSync(join(tmpdir(), "luxe-e2e-"));
|
||||
const env = isolatedEnv(root);
|
||||
const project = gitProject(root);
|
||||
const project = gitProject(root, name);
|
||||
writeConfig(env.LUXE_CONFIG_DIR, modelPort);
|
||||
const children = [];
|
||||
const host = { root, project, children, stop: () => stop(host) };
|
||||
@@ -39,11 +39,11 @@ function isolatedEnv(root) {
|
||||
return env;
|
||||
}
|
||||
|
||||
function gitProject(root) {
|
||||
const project = join(root, "project");
|
||||
function gitProject(root, name) {
|
||||
const project = join(root, name);
|
||||
mkdirSync(project);
|
||||
const git = (...args) => execFileSync("git", ["-c", "user.name=e2e", "-c", "user.email=e2e@luxe.test", ...args], { cwd: project });
|
||||
git("init", "-q");
|
||||
git("init", "-q", "-b", "main");
|
||||
// a few lines, so a phone can pick a range of them and select part of one
|
||||
writeFileSync(join(project, "README.md"), "# e2e\n\nThe port is 4519.\nThe host is luxe.local.\n");
|
||||
git("add", ".");
|
||||
|
||||
Reference in New Issue
Block a user