Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

chore(release): reconcile the local line with the published public/main

rubenluetke10-beepfe9af997b948
diff --git a/README.md b/README.md
index 88a72cf340..dee6ad2ee3 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,18 @@ workspace, gets reviewed by a critic, and comes back with a file.
<sub>One tab per tier, each with its own provider, and you only need keys for the tiers you use. Every provider says how it bills: a subscription login you already have, or an API key charged per token.</sub>
</p>
+## Demo
+
+<p align="center">
+ <a href="https://www.youtube.com/watch?v=6xoxgNu5fd8">
+ <img src="https://raw.githubusercontent.com/PersonalJarvis/PersonalJarvis/main/assets/demo/personal-jarvis-demo.gif" alt="Animated demo showing the spoken prompt, Jarvis opening Windows Settings, and switching display mode from dark to light" width="860" />
+ </a>
+</p>
+
+<p align="center">
+ <sub>One voice command, and the router takes the screen and does it live &middot; <a href="https://www.youtube.com/watch?v=6xoxgNu5fd8">watch the full demo on YouTube</a></sub>
+</p>
+
## What it does differently
The router is deliberately small. It works out what you said, picks a tool or a worker,
diff --git a/jarvis/ui/web/frontend/scripts/normalize-build-index.mjs b/jarvis/ui/web/frontend/scripts/normalize-build-index.mjs
new file mode 100644
index 0000000000..dea2f0c6ae
--- /dev/null
+++ b/jarvis/ui/web/frontend/scripts/normalize-build-index.mjs
@@ -0,0 +1,30 @@
+import { readdirSync, readFileSync, writeFileSync } from "node:fs";
+import { extname, join } from "node:path";
+import { fileURLToPath } from "node:url";
+
+const distPath = fileURLToPath(new URL("../../dist/", import.meta.url));
+const textExtensions = new Set([".css", ".html", ".js", ".json", ".map"]);
+
+function normalizeDirectory(directory) {
+ for (const entry of readdirSync(directory, { withFileTypes: true })) {
+ const path = join(directory, entry.name);
+ if (entry.isDirectory()) {
+ normalizeDirectory(path);
+ continue;
+ }
+ if (!entry.isFile() || !textExtensions.has(extname(entry.name))) continue;
+
+ const content = readFileSync(path, "utf8");
+ const normalized = content
+ .replace(/\r+\n/g, "\n")
+ .replace(/\r/g, "\n")
+ .replace(/^[\t ]+$/gm, "")
+ .replace(/\n*$/, "\n");
+
+ if (normalized !== content) {
+ writeFileSync(path, normalized, "utf8");
+ }
+ }
+}
+
+normalizeDirectory(distPath);
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgentPicker.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgentPicker.test.tsx
new file mode 100644
index 0000000000..d529ce1c72
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgentPicker.test.tsx
@@ -0,0 +1,79 @@
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { StrictMode, useState } from "react";
+import { afterEach, describe, expect, it, vi } from "vitest";
+
+import { AgentPickerMenu } from "./AgentPicker";
+
+afterEach(cleanup);
+
+function PickerHarness({ onPick = vi.fn() }: { onPick?: (agent: string) => void }) {
+ const [open, setOpen] = useState(false);
+ return (
+ <div>
+ <button type="button" onClick={() => setOpen(true)}>
+ Open picker
+ </button>
+ {open && (
+ <AgentPickerMenu
+ title="Open what?"
+ ariaLabel="Choose a terminal"
+ agents={[
+ { name: "codex", displayName: "Codex", installed: true },
+ { name: "claude", displayName: "Claude Code", installed: false },
+ ]}
+ onPick={onPick}
+ onDismiss={() => setOpen(false)}
+ testId="picker"
+ itemTestId={(agent) => `pick-${agent}`}
+ />
+ )}
+ </div>
+ );
+}
+
+describe("AgentPickerMenu", () => {
+ it("uses ordinary dialog controls and keeps unavailable choices explainable", () => {
+ const onPick = vi.fn();
+ render(<PickerHarness onPick={onPick} />);
+ fireEvent.click(screen.getByRole("button", { name: "Open picker" }));
+
+ expect(screen.getByRole("dialog", { name: "Choose a terminal" })).toBeTruthy();
+ const unavailable = screen.getByTestId("pick-claude");
+ expect(unavailable.getAttribute("aria-disabled")).toBe("true");
+ fireEvent.click(unavailable);
+ expect(onPick).not.toHaveBeenCalled();
+ });
+
+ it("Escape closes the dialog and restores focus to its trigger", () => {
+ render(
+ <StrictMode>
+ <PickerHarness />
+ </StrictMode>,
+ );
+ const trigger = screen.getByRole("button", { name: "Open picker" });
+ trigger.focus();
+ fireEvent.click(trigger);
+
+ expect(document.activeElement).toBe(screen.getByTestId("pick-codex"));
+ fireEvent.keyDown(document.activeElement as Element, { key: "Escape" });
+
+ expect(screen.queryByRole("dialog")).toBeNull();
+ expect(document.activeElement).toBe(trigger);
+ });
+
+ it("focuses the setup dialog when no choice is installed", () => {
+ render(
+ <AgentPickerMenu
+ title="Open what?"
+ ariaLabel="Choose a terminal"
+ agents={[]}
+ onPick={vi.fn()}
+ onDismiss={vi.fn()}
+ testId="empty-picker"
+ itemTestId={(agent) => `empty-${agent}`}
+ />,
+ );
+
+ expect(document.activeElement).toBe(screen.getByRole("dialog"));
+ });
+});
diff --git a/tests/unit/scripts/test_docs_privacy_scan.py b/tests/unit/scripts/test_docs_privacy_scan.py
new file mode 100644
index 0000000000..a724bbd5d5
--- /dev/null
+++ b/tests/unit/scripts/test_docs_privacy_scan.py
@@ -0,0 +1,59 @@
+"""Tests for the public fallback documentation privacy scanner."""
+
+from __future__ import annotations
+
+import sys
+from pathlib import Path
+
+from scripts.ci import docs_privacy_scan
+
+
+def test_generic_rules_block_windows_macos_and_linux_home_paths() -> None:
+ rules, emails = docs_privacy_scan._generic_manifest()
+
+ for value in (
+ r"C:\Users\alice\Documents\private.md",
+ "/Users/alice/Documents/private.md",
+ "/home/alice/Documents/private.md",
+ ):
+ assert docs_privacy_scan.scan_text(value, rules, emails)
+
+
+def test_generic_rules_allow_neutral_home_placeholders() -> None:
+ rules, emails = docs_privacy_scan._generic_manifest()
+
+ for value in (
+ r"C:\Users\<username>\Documents\example.md",
+ "/Users/<username>/Documents/example.md",
+ "/home/user/Documents/example.md",
+ "`/home/<name>`",
+ "/home/<service-user>/state",
+ ):
+ assert docs_privacy_scan.scan_text(value, rules, emails) == []
+
+
+def test_generic_rules_do_not_mistake_url_paths_for_home_directories() -> None:
+ rules, emails = docs_privacy_scan._generic_manifest()
+
+ assert (
+ docs_privacy_scan.scan_text(
+ "https://app.example.com/api/v1/users/me",
+ rules,
+ emails,
+ )
+ == []
+ )
+
+
+def test_unreadable_document_fails_closed(
+ tmp_path: Path,
+ monkeypatch,
+ capsys,
+) -> None:
+ document = tmp_path / "docs" / "invalid.md"
+ document.parent.mkdir()
+ document.write_bytes(b"\xff\xfe")
+ monkeypatch.setattr(sys, "argv", ["docs_privacy_scan.py", str(document)])
+
+ assert docs_privacy_scan.main() == 1
+ assert "unreadable documentation file" in capsys.readouterr().err
diff --git a/tests/unit/scripts/test_privacy_scan_ci_fallback.py b/tests/unit/scripts/test_privacy_scan_ci_fallback.py
new file mode 100644
index 0000000000..bdd1574a69
--- /dev/null
+++ b/tests/unit/scripts/test_privacy_scan_ci_fallback.py
@@ -0,0 +1,32 @@
+from __future__ import annotations
+
+import importlib.util
+from pathlib import Path
+
+
+def _load_gate_module():
+ root = Path(__file__).resolve().parents[3]
+ script = root / "scripts" / "ci" / "privacy_pre_push.py"
+ spec = importlib.util.spec_from_file_location("privacy_pre_push_fallback", script)
+ assert spec is not None and spec.loader is not None
+ module = importlib.util.module_from_spec(spec)
+ spec.loader.exec_module(module)
+ return module
+
+
+def test_public_fallback_scanner_blocks_generic_secret(tmp_path: Path) -> None:
+ gate = _load_gate_module()
+ compiled, forbidden, allowlist = gate.load_secret_scanner(tmp_path)
+ token = "ghp_" + ("a" * 36)
+
+ findings = gate.scan_text_for_secrets("example.txt", token, compiled, allowlist)
+
+ assert [finding["pattern"] for finding in findings] == ["github_token"]
+ assert gate.forbidden_file(".env", forbidden)
+
+
+def test_public_fallback_scanner_does_not_skip_clean_text(tmp_path: Path) -> None:
+ gate = _load_gate_module()
+ compiled, _, allowlist = gate.load_secret_scanner(tmp_path)
+
+ assert gate.scan_text_for_secrets("README.md", "safe example", compiled, allowlist) == []