feat: console ui, streaming report, history actions

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ahmed mohammed
2026-09-22 08:37:28 +03:00
co-authored by Claude Opus 4.7
parent ee4a88e499
commit a5529ce542
6 changed files with 68 additions and 3 deletions
+11
View File
@@ -37,3 +37,14 @@ test("session resolves only while unexpired", () => {
q.dropSession("tok");
assert.equal(q.sessionUserId("tok"), null);
});
test("rows are plain objects so they can cross the server -> client boundary", () => {
const id = q.createUser("plain@x.y", "h");
const aid = q.newAnalysis(id, "t", "<xml/>");
const row = q.listAnalyses(id)[0];
assert.equal(Object.getPrototypeOf(row), Object.prototype, "listAnalyses returned a null-prototype row");
assert.equal(Object.getPrototypeOf(q.getAnalysis(aid, id)!), Object.prototype, "getAnalysis");
q.saveSettings(id, { analyst_base_url: "b", analyst_key: "k", analyst_model: "m", analyst_extra: "{}",
jev_key: "j", jev_model: "v", onboarded: 1 });
assert.equal(Object.getPrototypeOf(q.getSettings(id)!), Object.prototype, "getSettings");
});