feat(KB-107): merge kb/kb-107

- feat(KB-107): complete Step 5 — add changeset for behavioral change
- test(KB-107): complete Step 4 — update tests to remove --no-open flag references
- feat(KB-107): complete Step 3 — remove --no-open from pi extension dashboard spawn
- feat(KB-107): complete Step 2 — simplify dashboard command, remove openBrowser function
- feat(KB-107): complete Step 1 — remove --no-open flag from CLI entry point
This commit is contained in:
gsxdsm
2026-03-30 07:34:10 -07:00
parent fe91b082d1
commit 4eccd036a8
6 changed files with 15 additions and 21 deletions

View File

@@ -117,7 +117,7 @@ describe("runDashboard — AuthStorage & ModelRegistry wiring", () => {
it("passes authStorage and modelRegistry to createServer", async () => {
const { createServer } = await import("@kb/dashboard");
await runDashboard(0, { open: false });
await runDashboard(0, {});
expect(createServer).toHaveBeenCalledTimes(1);
const serverOpts = (createServer as ReturnType<typeof vi.fn>).mock.calls[0][1];
@@ -128,7 +128,7 @@ describe("runDashboard — AuthStorage & ModelRegistry wiring", () => {
it("creates AuthStorage via AuthStorage.create()", async () => {
const { AuthStorage } = await import("@mariozechner/pi-coding-agent");
await runDashboard(0, { open: false });
await runDashboard(0, {});
expect(AuthStorage.create).toHaveBeenCalledTimes(1);
});
@@ -136,7 +136,7 @@ describe("runDashboard — AuthStorage & ModelRegistry wiring", () => {
it("creates ModelRegistry with the authStorage instance", async () => {
const { ModelRegistry } = await import("@mariozechner/pi-coding-agent");
await runDashboard(0, { open: false });
await runDashboard(0, {});
expect(ModelRegistry).toHaveBeenCalledTimes(1);
expect(ModelRegistry).toHaveBeenCalledWith(mockAuthStorage);