feat: console ui, streaming report, history actions
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
ee4a88e499
commit
a5529ce542
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user