Added nono profiles & orca integration - Added some extensions to start working on

This commit is contained in:
jb
2026-08-24 10:23:38 -04:00
parent 8bcb82813c
commit 10f64b593b
83 changed files with 21840 additions and 1353 deletions
+29
View File
@@ -0,0 +1,29 @@
import assert from "node:assert/strict";
import test from "node:test";
import {
reconcileDashboardSelection,
type DashboardSelection,
} from "./src/ui/takeover.ts";
test("dashboard selection follows its subagent id and falls back by row", () => {
const selection: DashboardSelection = { id: "sa-7", index: 6 };
reconcileDashboardSelection(selection, [
{ id: "sa-new" },
...Array.from({ length: 8 }, (_, index) => ({ id: `sa-${index + 1}` })),
]);
assert.deepEqual(selection, { id: "sa-7", index: 7 });
reconcileDashboardSelection(selection, [
...Array.from({ length: 6 }, (_, index) => ({ id: `sa-${index + 1}` })),
{ id: "sa-8" },
{ id: "sa-9" },
]);
assert.deepEqual(selection, { id: "sa-9", index: 7 });
reconcileDashboardSelection(selection, [{ id: "sa-1" }, { id: "sa-2" }]);
assert.deepEqual(selection, { id: "sa-2", index: 1 });
reconcileDashboardSelection(selection, []);
assert.deepEqual(selection, { id: undefined, index: 0 });
});