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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(cli): add the dodaios and dodaiosctl commands beside the earlier names (#587)
Ruben Lütke737f26d9d465
diff --git a/docs/desktop-installers.md b/docs/desktop-installers.mdindex 515580a7b8..53880b951b 100644--- a/docs/desktop-installers.md+++ b/docs/desktop-installers.md@@ -39,15 +39,16 @@ pyinstaller jarvis.spec --noconfirm --clean`onedir`, not `onefile`: no 3-5 second extraction on every launch, and each DLLcan be signed on its own.-It produces **two executables that share one payload**:+It produces **executables that share one payload**:-| Binary | Console? | What it is |-| ------------------------- | -------- | ---------------------------------------------------------------- |-| `PersonalJarvis` (`.exe`) | no | the windowed app - Start Menu, Dock, `.desktop` |-| `jarvis` (`.exe`) | yes | the CLI: `jarvis serve`, `jarvis --version`, `jarvis missions list` |+| Binary | Console? | What it is |+| ------------------------- | -------- | ------------------------------------------------------------------- |+| `PersonalJarvis` (`.exe`) | no | the windowed app - Start Menu, Dock, `.desktop` |+| `dodaios` (`.exe`) | yes | the CLI: `dodaios serve`, `dodaios --version`, `dodaios missions list` |+| `jarvis` (`.exe`) | yes | the same CLI under its earlier name, kept for existing scripts |-Both run `jarvis/__main__.py`, so the CLI from a native install behaves exactly-like the pip console script.+All of them run `jarvis/__main__.py`, so the CLI from a native install behaves+exactly like the pip console script.> **Why the GUI binary is not called `Jarvis`.** `Jarvis` and `jarvis` are the> same path on Windows (NTFS) and on a default macOS APFS volume, so one would@@ -57,8 +58,9 @@ like the pip console script.Layout:-- Windows / Linux: `dist/Jarvis/` with both binaries plus `_internal/`-- macOS: `dist/Personal Jarvis.app`, CLI at `Contents/MacOS/jarvis`+- Windows / Linux: `dist/Jarvis/` with the binaries plus `_internal/`+- macOS: `dist/Personal Jarvis.app`, CLI at `Contents/MacOS/dodaios` (and+ `Contents/MacOS/jarvis`)### Where a frozen install keeps user data@@ -107,7 +109,8 @@ The wizard itself is `packaging/windows/PersonalJarvis.iss`:- a **fixed `AppId` GUID** so every future setup upgrades in place instead ofadding a second entry to "Installed apps"- Start Menu shortcut; optional desktop shortcut (off by default)-- optional **"Add the `jarvis` command to PATH"** (on by default). Implemented+- optional **"Add the `dodaios` command to PATH"** (on by default; the folder+ it adds also holds `jarvis.exe`, so the earlier name works too). Implementedin `[Code]` against `HKCU\Environment` and broadcast with `WM_SETTINGCHANGE`,so a newly opened terminal sees it without a sign-out. Adding is idempotent,and clearing the task on an upgrade removes the entry again.diff --git a/docs/jarvis-cli-reference.md b/docs/jarvis-cli-reference.mdindex edab4891db..a3645f175b 100644--- a/docs/jarvis-cli-reference.md+++ b/docs/jarvis-cli-reference.md@@ -1,277 +1,277 @@-# Jarvis CLI — Command Reference+# Dodaios CLI — Command Reference-_Generated from the curated command tree by `scripts/ci/gen_cli_reference.py` — do not edit by hand. Every mounted REST endpoint is additionally reachable via `jarvis api <tag> <op>`._+_Generated from the curated command tree by `scripts/ci/gen_cli_reference.py` — do not edit by hand. Every mounted REST endpoint is additionally reachable via `dodaios api <tag> <op>`._## auth-- `jarvis auth login --url --key` — Verify the key against the server and persist it for future calls.-- `jarvis auth logout` — Forget the saved credentials.-- `jarvis auth status --url --key` — Report whether the configured (or given) target is reachable.+- `dodaios auth login --url --key` — Verify the key against the server and persist it for future calls.+- `dodaios auth logout` — Forget the saved credentials.+- `dodaios auth status --url --key` — Report whether the configured (or given) target is reachable.## board-- `jarvis board achievements` — Show unlocked + locked achievements.-- `jarvis board bio` — Show the AI-generated bio.-- `jarvis board bio-regenerate --yes --dry-run` — Regenerate the AI bio.-- `jarvis board heatmap --days` — Show the activity heatmap cells.-- `jarvis board profile` — Show the profile (meta + people + review count).-- `jarvis board records` — Show personal records.-- `jarvis board summary --window-days` — Show personal totals + streaks over a window.+- `dodaios board achievements` — Show unlocked + locked achievements.+- `dodaios board bio` — Show the AI-generated bio.+- `dodaios board bio-regenerate --yes --dry-run` — Regenerate the AI bio.+- `dodaios board heatmap --days` — Show the activity heatmap cells.+- `dodaios board profile` — Show the profile (meta + people + review count).+- `dodaios board records` — Show personal records.+- `dodaios board summary --window-days` — Show personal totals + streaks over a window.## brain-- `jarvis brain deep-model <model> --persist --yes --dry-run` — Set the mission worker's deep model.-- `jarvis brain list` — List configured brain providers (alias of status).-- `jarvis brain status` — Show configured providers and which one is active.-- `jarvis brain subagent-switch <provider> --persist --yes --dry-run` — Switch the mission-worker provider (e.g. Codex -> OpenAI).-- `jarvis brain switch <provider> --persist --yes --dry-run` — Switch the ACTIVE main brain provider (e.g. `jarvis brain switch openai`).-- `jarvis brain test <provider> --dry-run` — Test connectivity + auth for a provider.+- `dodaios brain deep-model <model> --persist --yes --dry-run` — Set the mission worker's deep model.+- `dodaios brain list` — List configured brain providers (alias of status).+- `dodaios brain status` — Show configured providers and which one is active.+- `dodaios brain subagent-switch <provider> --persist --yes --dry-run` — Switch the mission-worker provider (e.g. Codex -> OpenAI).+- `dodaios brain switch <provider> --persist --yes --dry-run` — Switch the ACTIVE main brain provider (e.g. `dodaios brain switch openai`).+- `dodaios brain test <provider> --dry-run` — Test connectivity + auth for a provider.## clis-- `jarvis clis check <name> --yes --dry-run` — Probe a CLI's binary + auth (refreshes its status).-- `jarvis clis connect <name> --json-body --yes --dry-run` — Connect a CLI's auth (oauth_cli flow or api_key).-- `jarvis clis disconnect <name> --yes --dry-run` — Remove a CLI's stored auth credentials.-- `jarvis clis install <name> --method --yes --dry-run` — Start an install job for a CLI (output streams in the desktop view).-- `jarvis clis list` — List all CLIs with status (connected, installed, version, 7-day usage).-- `jarvis clis show <name>` — Show one CLI (homepage, install methods, auth mode, secrets set).-- `jarvis clis usage <name>` — Show a CLI's recent usage history.-- `jarvis clis usage-stats <name>` — Show a CLI's aggregated usage stats (success rate, avg duration, top commands).+- `dodaios clis check <name> --yes --dry-run` — Probe a CLI's binary + auth (refreshes its status).+- `dodaios clis connect <name> --json-body --yes --dry-run` — Connect a CLI's auth (oauth_cli flow or api_key).+- `dodaios clis disconnect <name> --yes --dry-run` — Remove a CLI's stored auth credentials.+- `dodaios clis install <name> --method --yes --dry-run` — Start an install job for a CLI (output streams in the desktop view).+- `dodaios clis list` — List all CLIs with status (connected, installed, version, 7-day usage).+- `dodaios clis show <name>` — Show one CLI (homepage, install methods, auth mode, secrets set).+- `dodaios clis usage <name>` — Show a CLI's recent usage history.+- `dodaios clis usage-stats <name>` — Show a CLI's aggregated usage stats (success rate, avg duration, top commands).## commands-- `jarvis commands list` — List every registry command (id, endpoint, params, danger, UI section).-- `jarvis commands show <command_id>` — Show one command's full definition (params schema, voice aliases).+- `dodaios commands list` — List every registry command (id, endpoint, params, danger, UI section).+- `dodaios commands show <command_id>` — Show one command's full definition (params schema, voice aliases).## computer-use-- `jarvis computer-use cancel <mission_id> --yes --dry-run` — Cancel one active run.-- `jarvis computer-use cancel-all --yes --dry-run` — Cancel every active run (queued and running).-- `jarvis computer-use list --limit` — List active and recent Computer-Use runs.-- `jarvis computer-use show <mission_id>` — Show one run: status, goal, exit code, final output.-- `jarvis computer-use start <goal> --timeout-s --yes --dry-run` — Start a desktop goal in the background; prints the mission id.+- `dodaios computer-use cancel <mission_id> --yes --dry-run` — Cancel one active run.+- `dodaios computer-use cancel-all --yes --dry-run` — Cancel every active run (queued and running).+- `dodaios computer-use list --limit` — List active and recent Computer-Use runs.+- `dodaios computer-use show <mission_id>` — Show one run: status, goal, exit code, final output.+- `dodaios computer-use start <goal> --timeout-s --yes --dry-run` — Start a desktop goal in the background; prints the mission id.## conductor-- `jarvis conductor add --def --yes --dry-run` — Add a job from a Job JSON document.-- `jarvis conductor delete <job_id> --yes --dry-run` — Delete a job.-- `jarvis conductor list` — List Conductor jobs + a run summary.-- `jarvis conductor run <job_id> --yes --dry-run` — Manually trigger a job run.-- `jarvis conductor show <job_id>` — Show one job + recent runs.-- `jarvis conductor toggle <job_id> --enabled --yes --dry-run` — Enable or disable a job.+- `dodaios conductor add --def --yes --dry-run` — Add a job from a Job JSON document.+- `dodaios conductor delete <job_id> --yes --dry-run` — Delete a job.+- `dodaios conductor list` — List Conductor jobs + a run summary.+- `dodaios conductor run <job_id> --yes --dry-run` — Manually trigger a job run.+- `dodaios conductor show <job_id>` — Show one job + recent runs.+- `dodaios conductor toggle <job_id> --enabled --yes --dry-run` — Enable or disable a job.## config-- `jarvis config get <path>` — Get a config value by dotted path (control-key gated).-- `jarvis config language get` — Show the current reply language + the available options.-- `jarvis config language set <lang> --persist --yes --dry-run` — Set the reply language (hot-reloads, no restart).-- `jarvis config list` — List the mutable-settings allowlist (path, risk tier, restart needed).-- `jarvis config set <path> <value> --reason --yes --dry-run` — Set a mutable config value via the atomic write pipeline (destructive: --yes).+- `dodaios config get <path>` — Get a config value by dotted path (control-key gated).+- `dodaios config language get` — Show the current reply language + the available options.+- `dodaios config language set <lang> --persist --yes --dry-run` — Set the reply language (hot-reloads, no restart).+- `dodaios config list` — List the mutable-settings allowlist (path, risk tier, restart needed).+- `dodaios config set <path> <value> --reason --yes --dry-run` — Set a mutable config value via the atomic write pipeline (destructive: --yes).## contacts-- `jarvis contacts add --name --alias --relationship --email --phone --url --tag --organization --role --birthday --note --favorite --json-body --yes --dry-run` — Add a contact (field flags, or --json-body for the full record).-- `jarvis contacts delete <slug> --yes --dry-run` — Delete a contact.-- `jarvis contacts edit <slug> --name --alias --relationship --email --phone --url --tag --organization --role --birthday --note --favorite --json-body --yes --dry-run` — Edit a contact — only the given flags change (partial PATCH).-- `jarvis contacts export --out` — Export all contacts as vCard 3.0 (.vcf).-- `jarvis contacts import <file> --yes --dry-run` — Import contacts from a vCard file (merges, never clobbers).-- `jarvis contacts list` — List contacts.-- `jarvis contacts show <slug>` — Show one contact.+- `dodaios contacts add --name --alias --relationship --email --phone --url --tag --organization --role --birthday --note --favorite --json-body --yes --dry-run` — Add a contact (field flags, or --json-body for the full record).+- `dodaios contacts delete <slug> --yes --dry-run` — Delete a contact.+- `dodaios contacts edit <slug> --name --alias --relationship --email --phone --url --tag --organization --role --birthday --note --favorite --json-body --yes --dry-run` — Edit a contact — only the given flags change (partial PATCH).+- `dodaios contacts export --out` — Export all contacts as vCard 3.0 (.vcf).+- `dodaios contacts import <file> --yes --dry-run` — Import contacts from a vCard file (merges, never clobbers).+- `dodaios contacts list` — List contacts.+- `dodaios contacts show <slug>` — Show one contact.## costs-- `jarvis costs entries --days --provider --model --role --surface --search --sort --limit --offset` — The individual model calls behind the totals.-- `jarvis costs rates --days` — The rate card per model — and which models have no published rate.-- `jarvis costs summary --days --provider --model --role --surface --search` — Totals plus the breakdown by provider, model, role, surface and day.+- `dodaios costs entries --days --provider --model --role --surface --search --sort --limit --offset` — The individual model calls behind the totals.+- `dodaios costs rates --days` — The rate card per model — and which models have no published rate.+- `dodaios costs summary --days --provider --model --role --surface --search` — Totals plus the breakdown by provider, model, role, surface and day.## docs-- `jarvis docs list` — List documentation pages.-- `jarvis docs search <query>` — Search the docs.-- `jarvis docs show <slug>` — Show one doc page's body.-- `jarvis docs tree` — Show the Diataxis-grouped doc tree.+- `dodaios docs list` — List documentation pages.+- `dodaios docs search <query>` — Search the docs.+- `dodaios docs show <slug>` — Show one doc page's body.+- `dodaios docs tree` — Show the Diataxis-grouped doc tree.## friends-- `jarvis friends add --json-body --yes --dry-run` — Add a friend.-- `jarvis friends delete <friend_id> --yes --dry-run` — Delete a friend and their channels.-- `jarvis friends edit <friend_id> --json-body --yes --dry-run` — Edit a friend (partial).-- `jarvis friends list` — List friends with their channels.-- `jarvis friends message <friend_id> --text --yes --dry-run` — Send an outbound message to a friend (consequential — needs --yes).-- `jarvis friends messages <friend_id>` — Show the message thread with a friend.-- `jarvis friends show <friend_id>` — Show one friend (detail + channels + permission profile).+- `dodaios friends add --json-body --yes --dry-run` — Add a friend.+- `dodaios friends delete <friend_id> --yes --dry-run` — Delete a friend and their channels.+- `dodaios friends edit <friend_id> --json-body --yes --dry-run` — Edit a friend (partial).+- `dodaios friends list` — List friends with their channels.+- `dodaios friends message <friend_id> --text --yes --dry-run` — Send an outbound message to a friend (consequential — needs --yes).+- `dodaios friends messages <friend_id>` — Show the message thread with a friend.+- `dodaios friends show <friend_id>` — Show one friend (detail + channels + permission profile).## frontier-- `jarvis frontier ack --yes --dry-run` — Acknowledge (dismiss) the pending frontier proposals.-- `jarvis frontier pending` — List proposed model upgrades awaiting acknowledgement.+- `dodaios frontier ack --yes --dry-run` — Acknowledge (dismiss) the pending frontier proposals.+- `dodaios frontier pending` — List proposed model upgrades awaiting acknowledgement.## ide-- `jarvis ide archive-terminal <name> --restore --workspace --dry-run` — Hide a coding session from the chat list, or restore it.-- `jarvis ide close-terminals <names> --yes --dry-run` — Stop several coding agents and close their terminal panes.-- `jarvis ide move-terminal <name> <target_workspace> --workspace --beside --side --dry-run` — Move a terminal pane into another open workspace.-- `jarvis ide rename-terminal <name> <new_name> --dry-run` — Rename a running terminal pane without restarting its agent.+- `dodaios ide archive-terminal <name> --restore --workspace --dry-run` — Hide a coding session from the chat list, or restore it.+- `dodaios ide close-terminals <names> --yes --dry-run` — Stop several coding agents and close their terminal panes.+- `dodaios ide move-terminal <name> <target_workspace> --workspace --beside --side --dry-run` — Move a terminal pane into another open workspace.+- `dodaios ide rename-terminal <name> <new_name> --dry-run` — Rename a running terminal pane without restarting its agent.## local-models-- `jarvis local-models assistant benchmarks --refresh --provider` — Read the benchmark data used by the assistant.-- `jarvis local-models assistant diagnose --provider` — Start a guided diagnostic conversation.-- `jarvis local-models assistant health --provider` — Read the selected provider's local-model health.-- `jarvis local-models assistant session --provider` — Read the existing assistant session and its readiness.-- `jarvis local-models assistant setup --provider` — Start the existing guided setup conversation.-- `jarvis local-models assistant test --role --provider` — Run the setup test for all roles or the selected roles.-- `jarvis local-models catalog recommended --provider` — The curated shortlist ranked for this machine, with its review date.-- `jarvis local-models catalog search <query> --sort --capability --limit --provider` — Browse the library; offline is reported as a sentence, not a failure.-- `jarvis local-models catalog tags <name> --provider` — Every tag of one library model with size, quantization, context and fit.-- `jarvis local-models hf enable <state> --provider --dry-run` — Show or flip the Hugging Face browsing switch.-- `jarvis local-models hf files <user> <repo> --provider` — The .gguf files of one repository with quantization, size and fit.-- `jarvis local-models hf pull <user> <repo> --quant --provider --dry-run` — Start pulling hf.co/<user>/<repo>[:<quant>] through the normal pull path.-- `jarvis local-models hf search <query> --sort --limit --provider` — GGUF repositories on Hugging Face.-- `jarvis local-models models delete <name> --reassign --provider --yes --dry-run` — Remove a download from the server (refused while a role still uses it).-- `jarvis local-models models list --provider` — Every download with its facts, what is loaded, and the disk total.-- `jarvis local-models models show <name> --provider` — One download with the long facts (license, parameters, template).-- `jarvis local-models models unload <name> --provider --yes --dry-run` — Free the memory a loaded model holds; the next turn pays the load again.-- `jarvis local-models options clear <name> --provider --dry-run` — Drop the profile so the server's defaults apply again.-- `jarvis local-models options get <name> --provider` — The profile of one model as configured (empty when none).-- `jarvis local-models options set <name> <values> --provider --dry-run` — Replace the profile of a model with the given knobs (whole set).-- `jarvis local-models options suggest <name> --provider` — An advisory profile for this machine, with one reason per knob.-- `jarvis local-models roles list --provider` — Every role with its pick, what qualifies, and the recommendation.-- `jarvis local-models roles set <role> <model> --provider --dry-run` — Assign a model to a role (written through the config writers).-- `jarvis local-models server autostart <state> --provider --dry-run` — Show or flip "start the server with Dodaios" (fires only while local models are in use).-- `jarvis local-models server env-guide --os --provider` — Copyable per-OS commands for the server's environment variables.-- `jarvis local-models server log --lines --provider` — The last lines of the server log Dodaios writes when it starts the server.-- `jarvis local-models server status --provider` — Runtime picture plus what is loaded and how much disk the downloads take.-- `jarvis local-models server stop --provider --yes --dry-run` — Stop the server Dodaios itself started (never one started elsewhere).-- `jarvis local-models server test <base_url> --provider` — Probe a host before saving it: version and latency, or why it failed.-- `jarvis local-models server verify --provider` — Prove the setup works: the server, one real chat answer, one real embedding.+- `dodaios local-models assistant benchmarks --refresh --provider` — Read the benchmark data used by the assistant.+- `dodaios local-models assistant diagnose --provider` — Start a guided diagnostic conversation.+- `dodaios local-models assistant health --provider` — Read the selected provider's local-model health.+- `dodaios local-models assistant session --provider` — Read the existing assistant session and its readiness.+- `dodaios local-models assistant setup --provider` — Start the existing guided setup conversation.+- `dodaios local-models assistant test --role --provider` — Run the setup test for all roles or the selected roles.+- `dodaios local-models catalog recommended --provider` — The curated shortlist ranked for this machine, with its review date.+- `dodaios local-models catalog search <query> --sort --capability --limit --provider` — Browse the library; offline is reported as a sentence, not a failure.+- `dodaios local-models catalog tags <name> --provider` — Every tag of one library model with size, quantization, context and fit.+- `dodaios local-models hf enable <state> --provider --dry-run` — Show or flip the Hugging Face browsing switch.+- `dodaios local-models hf files <user> <repo> --provider` — The .gguf files of one repository with quantization, size and fit.+- `dodaios local-models hf pull <user> <repo> --quant --provider --dry-run` — Start pulling hf.co/<user>/<repo>[:<quant>] through the normal pull path.+- `dodaios local-models hf search <query> --sort --limit --provider` — GGUF repositories on Hugging Face.+- `dodaios local-models models delete <name> --reassign --provider --yes --dry-run` — Remove a download from the server (refused while a role still uses it).+- `dodaios local-models models list --provider` — Every download with its facts, what is loaded, and the disk total.+- `dodaios local-models models show <name> --provider` — One download with the long facts (license, parameters, template).+- `dodaios local-models models unload <name> --provider --yes --dry-run` — Free the memory a loaded model holds; the next turn pays the load again.+- `dodaios local-models options clear <name> --provider --dry-run` — Drop the profile so the server's defaults apply again.+- `dodaios local-models options get <name> --provider` — The profile of one model as configured (empty when none).+- `dodaios local-models options set <name> <values> --provider --dry-run` — Replace the profile of a model with the given knobs (whole set).+- `dodaios local-models options suggest <name> --provider` — An advisory profile for this machine, with one reason per knob.+- `dodaios local-models roles list --provider` — Every role with its pick, what qualifies, and the recommendation.+- `dodaios local-models roles set <role> <model> --provider --dry-run` — Assign a model to a role (written through the config writers).+- `dodaios local-models server autostart <state> --provider --dry-run` — Show or flip "start the server with Dodaios" (fires only while local models are in use).+- `dodaios local-models server env-guide --os --provider` — Copyable per-OS commands for the server's environment variables.+- `dodaios local-models server log --lines --provider` — The last lines of the server log Dodaios writes when it starts the server.+- `dodaios local-models server status --provider` — Runtime picture plus what is loaded and how much disk the downloads take.+- `dodaios local-models server stop --provider --yes --dry-run` — Stop the server Dodaios itself started (never one started elsewhere).+- `dodaios local-models server test <base_url> --provider` — Probe a host before saving it: version and latency, or why it failed.+- `dodaios local-models server verify --provider` — Prove the setup works: the server, one real chat answer, one real embedding.## marketplace-- `jarvis marketplace browse` — Show everything the community marketplace offers, and what you already have.-- `jarvis marketplace connect-pat <plugin_id> --token --yes --dry-run` — Connect a plugin with a personal access token.-- `jarvis marketplace connect-poll <plugin_id> <flow_id>` — Poll an in-progress OAuth connect flow.-- `jarvis marketplace connect-start <plugin_id> --yes --dry-run` — Begin an OAuth connect flow (prints the redirect URI + flow id).-- `jarvis marketplace disconnect <plugin_id> --yes --dry-run` — Disconnect a plugin.-- `jarvis marketplace install <item_id> --yes --dry-run` — Install a marketplace entry by name — skill, plugin or agent — and report it.-- `jarvis marketplace list` — List marketplace plugins + their connection status.+- `dodaios marketplace browse` — Show everything the community marketplace offers, and what you already have.+- `dodaios marketplace connect-pat <plugin_id> --token --yes --dry-run` — Connect a plugin with a personal access token.+- `dodaios marketplace connect-poll <plugin_id> <flow_id>` — Poll an in-progress OAuth connect flow.+- `dodaios marketplace connect-start <plugin_id> --yes --dry-run` — Begin an OAuth connect flow (prints the redirect URI + flow id).+- `dodaios marketplace disconnect <plugin_id> --yes --dry-run` — Disconnect a plugin.+- `dodaios marketplace install <item_id> --yes --dry-run` — Install a marketplace entry by name — skill, plugin or agent — and report it.+- `dodaios marketplace list` — List marketplace plugins + their connection status.## mcps-- `jarvis mcps check <name> --yes --dry-run` — Health-check an MCP server (lists its tools).-- `jarvis mcps delete <name> --yes --dry-run` — Remove an MCP server.-- `jarvis mcps disable <name> --yes --dry-run` — Disable an MCP server.-- `jarvis mcps enable <name> --yes --dry-run` — Enable an MCP server.-- `jarvis mcps import-claude-desktop --yes --dry-run` — Import MCP servers from the Claude Desktop config.-- `jarvis mcps list` — List MCP servers + a summary.+- `dodaios mcps check <name> --yes --dry-run` — Health-check an MCP server (lists its tools).+- `dodaios mcps delete <name> --yes --dry-run` — Remove an MCP server.+- `dodaios mcps disable <name> --yes --dry-run` — Disable an MCP server.+- `dodaios mcps enable <name> --yes --dry-run` — Enable an MCP server.+- `dodaios mcps import-claude-desktop --yes --dry-run` — Import MCP servers from the Claude Desktop config.+- `dodaios mcps list` — List MCP servers + a summary.## missions-- `jarvis missions approve-tool <mission_id> <trace_id> --yes --dry-run` — Approve one paused mission tool call and resume it.-- `jarvis missions cancel <mission_id> --yes --dry-run` — Cancel a running mission (kills its worker).-- `jarvis missions deny-tool <mission_id> <trace_id> --reason --dry-run` — Deny one paused mission tool call without executing it.-- `jarvis missions dispatch <prompt> --language --confirmed --yes --dry-run` — Dispatch a new self-healing mission — spawns a worker (destructive: --yes).-- `jarvis missions kill <worker_id> --yes --dry-run` — Hard-kill a worker process by id.-- `jarvis missions list --state --limit` — List missions (optionally filtered by state).-- `jarvis missions rerun <mission_id> --confirmed --yes --dry-run` — Re-dispatch a terminal mission's prompt as a new linked mission.-- `jarvis missions result <mission_id>` — Read a mission's signed outcome and actual deliverable contents.-- `jarvis missions show <mission_id>` — Show one mission with its events + verdicts.-- `jarvis missions tool-approvals <mission_id>` — List supervisor tool calls waiting for approval in a mission.+- `dodaios missions approve-tool <mission_id> <trace_id> --yes --dry-run` — Approve one paused mission tool call and resume it.+- `dodaios missions cancel <mission_id> --yes --dry-run` — Cancel a running mission (kills its worker).+- `dodaios missions deny-tool <mission_id> <trace_id> --reason --dry-run` — Deny one paused mission tool call without executing it.+- `dodaios missions dispatch <prompt> --language --confirmed --yes --dry-run` — Dispatch a new self-healing mission — spawns a worker (destructive: --yes).+- `dodaios missions kill <worker_id> --yes --dry-run` — Hard-kill a worker process by id.+- `dodaios missions list --state --limit` — List missions (optionally filtered by state).+- `dodaios missions rerun <mission_id> --confirmed --yes --dry-run` — Re-dispatch a terminal mission's prompt as a new linked mission.+- `dodaios missions result <mission_id>` — Read a mission's signed outcome and actual deliverable contents.+- `dodaios missions show <mission_id>` — Show one mission with its events + verdicts.+- `dodaios missions tool-approvals <mission_id>` — List supervisor tool calls waiting for approval in a mission.## outputs-- `jarvis outputs files <slug>` — List the artifacts a mission produced.-- `jarvis outputs graph <slug>` — Print a session's mission-map page (self-contained HTML node graph).-- `jarvis outputs list` — List output sessions (a mission's deliverable folders).-- `jarvis outputs open-with <slug> <path> --opener --yes --dry-run` — Open an artifact with a chosen editor (desktop only).-- `jarvis outputs openers` — List installed editors/apps that can open an artifact.-- `jarvis outputs plan <slug>` — Show a session's plan + steps.-- `jarvis outputs preferred-opener <opener> --yes --dry-run` — Get or set the default artifact opener.+- `dodaios outputs files <slug>` — List the artifacts a mission produced.+- `dodaios outputs graph <slug>` — Print a session's mission-map page (self-contained HTML node graph).+- `dodaios outputs list` — List output sessions (a mission's deliverable folders).+- `dodaios outputs open-with <slug> <path> --opener --yes --dry-run` — Open an artifact with a chosen editor (desktop only).+- `dodaios outputs openers` — List installed editors/apps that can open an artifact.+- `dodaios outputs plan <slug>` — Show a session's plan + steps.+- `dodaios outputs preferred-opener <opener> --yes --dry-run` — Get or set the default artifact opener.## permissions-- `jarvis permissions open-settings <permission_id> --yes --dry-run` — Open the matching macOS privacy pane through LaunchServices.-- `jarvis permissions request <permission_id> --yes --dry-run` — Ask macOS for one permission through the same service the app uses.-- `jarvis permissions reset <permission_id> --bundle-id --yes --dry-run` — Forget what macOS recorded for Dodaios, so it asks again on next use (macOS only).-- `jarvis permissions status --include-automation` — Show each macOS privacy permission and what is waiting on one. Never prompts.+- `dodaios permissions open-settings <permission_id> --yes --dry-run` — Open the matching macOS privacy pane through LaunchServices.+- `dodaios permissions request <permission_id> --yes --dry-run` — Ask macOS for one permission through the same service the app uses.+- `dodaios permissions reset <permission_id> --bundle-id --yes --dry-run` — Forget what macOS recorded for Dodaios, so it asks again on next use (macOS only).+- `dodaios permissions status --include-automation` — Show each macOS privacy permission and what is waiting on one. Never prompts.## refresh-- `jarvis refresh` — Clear the cached API schema (next call re-fetches it).+- `dodaios refresh` — Clear the cached API schema (next call re-fetches it).## sessions-- `jarvis sessions command <session_id> <command> --arguments --request-id --yes --dry-run` — Run an explicit command in a Dodaios or agent chat.-- `jarvis sessions control <session_id>` — Read a chat's current work mode and persistent goal.-- `jarvis sessions delete <session_id> --yes --dry-run` — Delete a text conversation thread.-- `jarvis sessions latest-turn --session-id` — Show the latest persisted user transcript and its complete turn.-- `jarvis sessions list --days --limit` — List text + voice sessions, newest first.-- `jarvis sessions resume <kind> <session_id> --yes --dry-run` — Seed the brain from a past conversation to continue it in text.-- `jarvis sessions show <kind> <session_id>` — Show one conversation with its messages.-- `jarvis sessions speak <kind> <session_id> --yes --dry-run` — Start a voice session seeded from a past conversation (503 on headless).+- `dodaios sessions command <session_id> <command> --arguments --request-id --yes --dry-run` — Run an explicit command in a Dodaios or agent chat.+- `dodaios sessions control <session_id>` — Read a chat's current work mode and persistent goal.+- `dodaios sessions delete <session_id> --yes --dry-run` — Delete a text conversation thread.+- `dodaios sessions latest-turn --session-id` — Show the latest persisted user transcript and its complete turn.+- `dodaios sessions list --days --limit` — List text + voice sessions, newest first.+- `dodaios sessions resume <kind> <session_id> --yes --dry-run` — Seed the brain from a past conversation to continue it in text.+- `dodaios sessions show <kind> <session_id>` — Show one conversation with its messages.+- `dodaios sessions speak <kind> <session_id> --yes --dry-run` — Start a voice session seeded from a past conversation (503 on headless).## skills-- `jarvis skills catalog-install <name> --source-url --title --raw-url --yes --dry-run` — Install a skill from the catalog (lands as a draft).-- `jarvis skills catalog-search <query>` — Search the installable skill catalog.-- `jarvis skills commit --draft --yes --dry-run` — Commit a generated draft to disk (still state=draft until enabled).-- `jarvis skills create <intent> --name --trigger --schedule --language --yes --dry-run` — Author AND write a new skill in one step (the voice path's `create-skill`).-- `jarvis skills disable <name> --yes --dry-run` — Deactivate a skill.-- `jarvis skills draft <intent> --name-hint --category --trigger --schedule --language --yes --dry-run` — Generate a skill draft from an intent WITHOUT writing it (review, then `commit`).-- `jarvis skills enable <name> --yes --dry-run` — Activate a skill.-- `jarvis skills import <source> --yes --dry-run` — Install a skill from a local folder or a SKILL.md link.-- `jarvis skills list` — List all discovered skills.-- `jarvis skills reload --yes --dry-run` — Re-scan the skills directory.-- `jarvis skills show <name>` — Show one skill's detail.+- `dodaios skills catalog-install <name> --source-url --title --raw-url --yes --dry-run` — Install a skill from the catalog (lands as a draft).+- `dodaios skills catalog-search <query>` — Search the installable skill catalog.+- `dodaios skills commit --draft --yes --dry-run` — Commit a generated draft to disk (still state=draft until enabled).+- `dodaios skills create <intent> --name --trigger --schedule --language --yes --dry-run` — Author AND write a new skill in one step (the voice path's `create-skill`).+- `dodaios skills disable <name> --yes --dry-run` — Deactivate a skill.+- `dodaios skills draft <intent> --name-hint --category --trigger --schedule --language --yes --dry-run` — Generate a skill draft from an intent WITHOUT writing it (review, then `commit`).+- `dodaios skills enable <name> --yes --dry-run` — Activate a skill.+- `dodaios skills import <source> --yes --dry-run` — Install a skill from a local folder or a SKILL.md link.+- `dodaios skills list` — List all discovered skills.+- `dodaios skills reload --yes --dry-run` — Re-scan the skills directory.+- `dodaios skills show <name>` — Show one skill's detail.## socials-- `jarvis socials add --json-body --yes --dry-run` — Add a social link.-- `jarvis socials delete <social_id> --yes --dry-run` — Delete a social link.-- `jarvis socials edit <social_id> --json-body --yes --dry-run` — Edit a social link (partial).-- `jarvis socials list` — List social links.+- `dodaios socials add --json-body --yes --dry-run` — Add a social link.+- `dodaios socials delete <social_id> --yes --dry-run` — Delete a social link.+- `dodaios socials edit <social_id> --json-body --yes --dry-run` — Edit a social link (partial).+- `dodaios socials list` — List social links.## system-- `jarvis system audio-devices --output --input` — List audio devices, or pick where the voice plays / which mic listens.-- `jarvis system restart --force --yes --dry-run` — Refuse a CLI restart; use the desktop UI's explicit Restart action.-- `jarvis system status` — Report server reachability + version (GET /api/control/auth/probe).+- `dodaios system audio-devices --output --input` — List audio devices, or pick where the voice plays / which mic listens.+- `dodaios system restart --force --yes --dry-run` — Refuse a CLI restart; use the desktop UI's explicit Restart action.+- `dodaios system status` — Report server reachability + version (GET /api/control/auth/probe).## tasks-- `jarvis tasks cancel <task_id> --yes --dry-run` — Soft-cancel a scheduled/running task.-- `jarvis tasks create --json-body --yes --dry-run` — Create + schedule a task from a TaskSpec JSON document.-- `jarvis tasks delete <task_id> --yes --dry-run` — Hard-delete a task (terminal states only, server-enforced).-- `jarvis tasks get <task_id>` — Show one task with its step timeline.-- `jarvis tasks list --state --limit` — List tasks (optionally filtered by state).+- `dodaios tasks cancel <task_id> --yes --dry-run` — Soft-cancel a scheduled/running task.+- `dodaios tasks create --json-body --yes --dry-run` — Create + schedule a task from a TaskSpec JSON document.+- `dodaios tasks delete <task_id> --yes --dry-run` — Hard-delete a task (terminal states only, server-enforced).+- `dodaios tasks get <task_id>` — Show one task with its step timeline.+- `dodaios tasks list --state --limit` — List tasks (optionally filtered by state).## telephony-- `jarvis telephony config` — Show the telephony config.-- `jarvis telephony outbound <to> --message --yes --dry-run` — Place a real outbound call (destructive: costs money; needs --yes).-- `jarvis telephony status` — Report telephony availability/status.+- `dodaios telephony config` — Show the telephony config.+- `dodaios telephony outbound <to> --message --yes --dry-run` — Place a real outbound call (destructive: costs money; needs --yes).+- `dodaios telephony status` — Report telephony availability/status.## version-- `jarvis version` — Print the jarvisctl version.+- `dodaios version` — Print the CLI version.## wiki-- `jarvis wiki backfill --days --max-sessions --preview --yes --dry-run` — Backfill recent Realtime sessions through evidence-safe Wiki capture.-- `jarvis wiki health` — Show wiki subsystem health: bootstrap, last write, chain failures, backlog (spec A5).-- `jarvis wiki ingest <text> --source --dry-run` — Store a fact through the guarded Wiki curator.-- `jarvis wiki page <slug>` — Read a wiki page by vault path / slug.-- `jarvis wiki recall <query>` — Full-text search the wiki.-- `jarvis wiki reindex --preview` — Rebuild the wiki search index from the active vault.-- `jarvis wiki tree` — Show the vault folder tree + stats.-- `jarvis wiki vaults` — List the user's registered Obsidian vaults (connect picker, spec A6).+- `dodaios wiki backfill --days --max-sessions --preview --yes --dry-run` — Backfill recent Realtime sessions through evidence-safe Wiki capture.+- `dodaios wiki health` — Show wiki subsystem health: bootstrap, last write, chain failures, backlog (spec A5).+- `dodaios wiki ingest <text> --source --dry-run` — Store a fact through the guarded Wiki curator.+- `dodaios wiki page <slug>` — Read a wiki page by vault path / slug.+- `dodaios wiki recall <query>` — Full-text search the wiki.+- `dodaios wiki reindex --preview` — Rebuild the wiki search index from the active vault.+- `dodaios wiki tree` — Show the vault folder tree + stats.+- `dodaios wiki vaults` — List the user's registered Obsidian vaults (connect picker, spec A6).## workflows-- `jarvis workflows create --def --yes --dry-run` — Create a workflow from a WorkflowDef JSON document.-- `jarvis workflows delete <workflow_id> --yes --dry-run` — Delete a workflow.-- `jarvis workflows list` — List workflows + a run summary.-- `jarvis workflows run <workflow_id> --yes --dry-run` — Trigger a workflow run.-- `jarvis workflows run-history --workflow-id` — List workflow runs (optionally for one workflow).-- `jarvis workflows show <workflow_id>` — Show one workflow + recent runs.+- `dodaios workflows create --def --yes --dry-run` — Create a workflow from a WorkflowDef JSON document.+- `dodaios workflows delete <workflow_id> --yes --dry-run` — Delete a workflow.+- `dodaios workflows list` — List workflows + a run summary.+- `dodaios workflows run <workflow_id> --yes --dry-run` — Trigger a workflow run.+- `dodaios workflows run-history --workflow-id` — List workflow runs (optionally for one workflow).+- `dodaios workflows show <workflow_id>` — Show one workflow + recent runs.diff --git a/docs/jarvis-cli.md b/docs/jarvis-cli.mdindex 9c185c7031..1097699564 100644--- a/docs/jarvis-cli.md+++ b/docs/jarvis-cli.md@@ -1,6 +1,6 @@# The Dodaios CLI-`jarvis` is a command-line interface to a **running** Dodaios instance. It+`dodaios` is a command-line interface to a **running** Dodaios instance. Itexposes the same action surface as the desktop WebUI, so anything you can click inthe UI you can also do from a terminal — and, more importantly, so can an externalcoding agent (Claude Code, Codex) or a script.@@ -9,6 +9,11 @@ This is the same relationship `gcloud` / `aws` / `az` have with their cloudplatforms: a single CLI that surfaces the full capability plane of a service. Youpoint it at a running Dodaios and drive it.+> The command was called `jarvis` before the product was renamed. `jarvis`,+> `personal-jarvis`, `jarvisctl` and `jctl` are still installed and do exactly+> what `dodaios` and `dodaiosctl` do, so existing scripts keep working; help+> output repeats whichever name you typed.+>> Full command list: [`jarvis-cli-reference.md`](jarvis-cli-reference.md)> (auto-generated). Design rationale: [`superpowers/specs/2026-06-21-jarvis-cli-design.md`](superpowers/specs/2026-06-21-jarvis-cli-design.md).@@ -16,11 +21,11 @@ point it at a running Dodaios and drive it.The CLI is a **thin HTTP client over the REST API**, in two layers:-1. **Dynamic layer (`jarvis api <tag> <op>`)** — every mounted REST endpoint is+1. **Dynamic layer (`dodaios api <tag> <op>`)** — every mounted REST endpoint issurfaced automatically from the server's OpenAPI spec. New features becomecommands with no extra code. This is what guarantees *every* WebUI action isreachable.-2. **Curated layer (`jarvis <group> <command>`)** — hand-written, ergonomic+2. **Curated layer (`dodaios <group> <command>`)** — hand-written, ergonomiccommands for the common domains: `brain`, `config`, `missions`, `wiki`,`sessions`, `skills`, `outputs`, `board`, `costs`, `workflows`, `conductor`,`contacts`, `telephony`, `marketplace`, `mcps`, `docs`, `frontier`,@@ -39,13 +44,13 @@ It runs on Linux, macOS, and Windows (pure-Python: `typer`, `httpx`,The CLI ships with the package, so after the normal install it is on your PATH:```bash-pip install -e . # provides the `jarvis` binary (aliases: jarvisctl, jctl)-jarvis version+pip install -e . # provides the `dodaios` and `dodaiosctl` commands+dodaios version```-Bare `jarvis` (no subcommand) still launches the app/tray as before; `jarvis serve`-still starts the headless server. Only the control subcommands (`jarvis missions-…`, `jarvis brain …`, etc.) route into the CLI.+Bare `dodaios` (no subcommand) still launches the app/tray as before; `dodaios serve`+still starts the headless server. Only the control subcommands (`dodaios missions+…`, `dodaios brain …`, etc.) route into the CLI.## Auth & discovery@@ -55,12 +60,12 @@ CLI discovers it automatically (and falls back to the machine's control key). Jurun commands:```bash-jarvis system status # {"reachable": true} when Dodaios is up-jarvis --json brain status+dodaios system status # {"reachable": true} when Dodaios is up+dodaios --json brain status```Resolution order (highest first): explicit `--url` / `--key` → `JARVISCTL_BASE_URL`-/ `JARVISCTL_CONTROL_KEY` env → saved profile (`jarvis auth login`) → the live+/ `JARVISCTL_CONTROL_KEY` env → saved profile (`dodaios auth login`) → the livesession file → the local control key + default `127.0.0.1:47821`.**Remote / VPS.** Tunnel the loopback port and the CLI treats it as local:@@ -73,8 +78,8 @@ Or save a remote profile (the key is read from a hidden prompt — never an inliargument that would land in shell history):```bash-jarvis auth login --url https://jarvis.example:47821-# (prompts for the control key; or: echo "$JCTL" | jarvis auth login --url … --key -)+dodaios auth login --url https://jarvis.example:47821+# (prompts for the control key; or: echo "$JCTL" | dodaios auth login --url … --key -)```## Output@@ -83,8 +88,8 @@ Put `--json` **before** the group for machine-readable output; omit it for humantables:```bash-jarvis --json missions list # JSON, for scripts/agents-jarvis missions list # rich table, for humans+dodaios --json missions list # JSON, for scripts/agents+dodaios missions list # rich table, for humans```## Installing from the marketplace@@ -93,8 +98,8 @@ A marketplace page prints one line to copy. It works for every kind of entry —skills and plugins — and you never have to know which one you are looking at:```bash-jarvis marketplace install three-bullet-brief-jarvis marketplace browse # everything on offer + what you have+dodaios marketplace install three-bullet-brief+dodaios marketplace browse # everything on offer + what you have```At a terminal the command first shows what the entry is and where it comes from,@@ -122,28 +127,28 @@ another pull-capable card (a cloud card answers with a sentence, never an emptytable):```bash-jarvis local-models roles # chat / tools_screen / deep / embedding-jarvis local-models roles set deep qwen3:32b-jarvis local-models models # every download, what is loaded, disk total-jarvis local-models models show qwen3:32b-jarvis local-models models unload qwen3:32b --yes # frees memory; the next turn reloads-jarvis local-models models delete old:7b --reassign qwen3:32b --yes-jarvis local-models options set qwen3:32b num_ctx=16384 temperature=0.2 think=false-jarvis local-models options suggest qwen3:32b # an advisory profile for this machine-jarvis local-models catalog search "vision" --capability vision-jarvis local-models catalog tags qwen3-jarvis local-models catalog recommended-jarvis local-models hf enable on # off by default; nothing calls huggingface.co until then-jarvis local-models hf search "llama 3.1 gguf"-jarvis local-models hf files bartowski Llama-3.1-8B-Instruct-GGUF-jarvis local-models hf pull bartowski Llama-3.1-8B-Instruct-GGUF --quant Q4_K_M-jarvis local-models server status-jarvis local-models server test http://127.0.0.1:11434-jarvis local-models server verify # the server, one real chat answer, one real embedding-jarvis local-models server autostart off # on by default; fires only while local models are in use-jarvis local-models server log --lines 80-jarvis local-models server env-guide --os linux-jarvis local-models server stop --yes # only a server Dodaios itself started+dodaios local-models roles # chat / tools_screen / deep / embedding+dodaios local-models roles set deep qwen3:32b+dodaios local-models models # every download, what is loaded, disk total+dodaios local-models models show qwen3:32b+dodaios local-models models unload qwen3:32b --yes # frees memory; the next turn reloads+dodaios local-models models delete old:7b --reassign qwen3:32b --yes+dodaios local-models options set qwen3:32b num_ctx=16384 temperature=0.2 think=false+dodaios local-models options suggest qwen3:32b # an advisory profile for this machine+dodaios local-models catalog search "vision" --capability vision+dodaios local-models catalog tags qwen3+dodaios local-models catalog recommended+dodaios local-models hf enable on # off by default; nothing calls huggingface.co until then+dodaios local-models hf search "llama 3.1 gguf"+dodaios local-models hf files bartowski Llama-3.1-8B-Instruct-GGUF+dodaios local-models hf pull bartowski Llama-3.1-8B-Instruct-GGUF --quant Q4_K_M+dodaios local-models server status+dodaios local-models server test http://127.0.0.1:11434+dodaios local-models server verify # the server, one real chat answer, one real embedding+dodaios local-models server autostart off # on by default; fires only while local models are in use+dodaios local-models server log --lines 80+dodaios local-models server env-guide --os linux+dodaios local-models server stop --yes # only a server Dodaios itself started````options set` replaces the whole profile: `KEY=VALUE` pairs are typed (numbers,@@ -159,12 +164,12 @@ Dodaios asks macOS for a permission at the moment a feature first needsit, never at launch. The `permissions` group is the terminal view of that:```bash-jarvis permissions status # read only: never prompts, never blocks-jarvis permissions status --include-automation # also read Music/Spotify (they must be running)-jarvis permissions request microphone --yes # ask now, through the same service the app uses-jarvis permissions open-settings microphone --yes # open the matching System Settings pane-jarvis permissions reset microphone --dry-run # preview the tccutil command, run nothing-jarvis permissions reset microphone --yes # forget macOS's answer so it asks again (macOS only)+dodaios permissions status # read only: never prompts, never blocks+dodaios permissions status --include-automation # also read Music/Spotify (they must be running)+dodaios permissions request microphone --yes # ask now, through the same service the app uses+dodaios permissions open-settings microphone --yes # open the matching System Settings pane+dodaios permissions reset microphone --dry-run # preview the tccutil command, run nothing+dodaios permissions reset microphone --yes # forget macOS's answer so it asks again (macOS only)````status` prints each permission (`granted`, `not_determined`, `denied`, `restricted`,@@ -207,7 +212,7 @@ the genuinely consequential:stop` — refuse unless you pass `--yes` (or set`JARVIS_CLI_ASSUME_YES=1`). A prompt is not an accepted substitute.- **Desktop restart is UI-only.** Control/API clients, including- `jarvis system restart`, cannot restart the app even with `--yes --force`;+ `dodaios system restart`, cannot restart the app even with `--yes --force`;the maintainer must click Restart in the desktop UI. This preserves liveAgentic-IDE terminals and makes human presence explicit.- `--dry-run` on any command prints the exact request (method, path, body, whether@@ -221,21 +226,21 @@ This is a first-class use case. An external coding agent can control your runninDodaios end-to-end through its shell:1. **It's already installed and authenticated.** After `pip install -e .` the- `jarvis` binary is on PATH, and local auth is zero-config (session-file- discovery). The agent runs `jarvis system status` to confirm Dodaios is up.-2. **It discovers the surface** with `jarvis --help`, `jarvis <group> --help`, and- `jarvis api --help` for the full generated list.+ `dodaios` binary is on PATH, and local auth is zero-config (session-file+ discovery). The agent runs `dodaios system status` to confirm Dodaios is up.+2. **It discovers the surface** with `dodaios --help`, `dodaios <group> --help`, and+ `dodaios api --help` for the full generated list.3. **It reads with `--json`** and parses, and **acts with explicit intent**, using`--dry-run` to preview and `--yes` to authorize destructive actions.Worked example — switch the brain provider, then dispatch a mission:```bash-jarvis --json brain status # see the active provider-jarvis brain switch openai # reversible → runs immediately-jarvis brain subagent-switch openai # switch the worker provider too-jarvis missions dispatch "summarize today's PRs" --yes # destructive → needs --yes-jarvis --json missions list --state RUNNING # watch it+dodaios --json brain status # see the active provider+dodaios brain switch openai # reversible → runs immediately+dodaios brain subagent-switch openai # switch the worker provider too+dodaios missions dispatch "summarize today's PRs" --yes # destructive → needs --yes+dodaios --json missions list --state RUNNING # watch it```The `drive-jarvis-cli` skill (in `.claude/skills/`) packages these conventions sodiff --git a/install/installer.py b/install/installer.pyindex cdaa7d17cd..3a628e2909 100644--- a/install/installer.py+++ b/install/installer.py@@ -54,6 +54,7 @@ if str(_SOURCE_ROOT) not in sys.path:sys.path.insert(0, str(_SOURCE_ROOT))from jarvis.core.branding import ( # noqa: E402 - bootstrap source path above+ CLI_COMMAND_NAME,LAUNCHER_ENTRY_NAME,MACOS_APP_NAME,MANAGED_INSTALL_MARKER,@@ -830,7 +831,7 @@ def step_launch(*, headless: bool, dry_run: bool) -> None:def step_cli_links(*, dry_run: bool) -> None:- """Make `jarvis` / `personal-jarvis` plain terminal commands on every OS.+ """Make `dodaios` and its earlier names plain terminal commands on every OS.The venv's console scripts are linked (macOS/Linux, ``~/.local/bin``) orcopied (Windows, ``<install>\\bin``) onto the user's PATH — see@@ -890,8 +891,8 @@ def step_summary(*, no_launch: bool, update: bool, headless: bool) -> None:rows.append(("Start again", ".venv/bin/python -m jarvis.ui.web.launcher", "brand"))rows.append(("", "(in the install folder)", "muted"))if not (headless or is_headless_linux()):- rows.append(("", "or type jarvis in a new terminal", "muted"))- rows.append(("Update", "type jarvis update in a terminal", "muted"))+ rows.append(("", f"or type {CLI_COMMAND_NAME} in a new terminal", "muted"))+ rows.append(("Update", f"type {CLI_COMMAND_NAME} update in a terminal", "muted"))rows.append(("", "(or re-run the same install one-liner)", "muted"))if update:rows.append(("Next", "your setup and settings are kept - no re-onboarding", "muted"))diff --git a/jarvis.spec b/jarvis.specindex fc4ee8cf13..f32e6dab58 100644--- a/jarvis.spec+++ b/jarvis.spec@@ -3,12 +3,14 @@# Strategy:# - `onedir` instead of `onefile` avoids 3-5 seconds of MEIPASS extraction and# allows each DLL to be signed independently.-# - TWO executables share ONE Analysis/COLLECT, because a native install has to-# cover both surfaces the project promises:+# - Several executables share ONE Analysis/COLLECT, because a native install+# has to cover both surfaces the project promises:# * a windowed GUI launcher (Start Menu / Applications / .desktop), and-# * a console CLI named `jarvis`, so `jarvis serve`, `jarvis --version`,-# `jarvis missions list` behave exactly like the pip console script.-# Both run `jarvis/__main__.py`; only the console flag differs.+# * a console CLI named `dodaios`, so `dodaios serve`, `dodaios --version`,+# `dodaios missions list` behave exactly like the pip console script.+# The same console program is built a second time as `jarvis`, the+# command's earlier name, which scripts and shell history still call.+# All of them run `jarvis/__main__.py`; only the console flag differs.# - The GUI binary is `PersonalJarvis`, not `Jarvis`: `Jarvis` and `jarvis`# are the SAME path on Windows (NTFS) and on a default macOS APFS volume, so# the second executable would overwrite the first. `PersonalJarvis` is the@@ -47,7 +49,10 @@ BUNDLE_DIR_NAME = "Jarvis"# Windowed launcher; see the header note on the case-collision.GUI_EXE_NAME = "PersonalJarvis"# Console entry point. Same name as the pip console script on purpose.-CLI_EXE_NAME = "jarvis"+CLI_EXE_NAME = "dodaios"+# The console entry point under its earlier name, built from the same program.+# No name here may equal GUI_EXE_NAME ignoring case: they share one folder.+LEGACY_CLI_EXE_NAMES = ("jarvis",)MACOS_APP_NAME = "Personal Jarvis.app"MACOS_BUNDLE_IDENTIFIER = "ai.personaljarvis.desktop"@@ -421,7 +426,8 @@ ICON = _icon_path()# --- Executables -------------------------------------------------------------# Two targets, one COLLECT: the windowed launcher and the console CLI.+# One COLLECT: the windowed launcher, the console CLI, and the console CLI+# again under each earlier name.exe_gui = EXE(pyz,@@ -444,30 +450,36 @@ exe_gui = EXE(uac_admin=False, # Run asInvoker; elevate only individual actions.)-exe_cli = EXE(- pyz,- a.scripts,- [],- exclude_binaries=True,- name=CLI_EXE_NAME,- debug=False,- bootloader_ignore_signals=False,- strip=False,- upx=False,- console=True, # `jarvis serve` must print to the terminal it ran in.- disable_windowed_traceback=False,- argv_emulation=False,- target_arch=None,- codesign_identity=None,- entitlements_file=None,- icon=ICON,- version=version_resource,- uac_admin=False,-)+def _console_exe(name):+ return EXE(+ pyz,+ a.scripts,+ [],+ exclude_binaries=True,+ name=name,+ debug=False,+ bootloader_ignore_signals=False,+ strip=False,+ upx=False,+ console=True, # `dodaios serve` must print to the terminal it ran in.+ disable_windowed_traceback=False,+ argv_emulation=False,+ target_arch=None,+ codesign_identity=None,+ entitlements_file=None,+ icon=ICON,+ version=version_resource,+ uac_admin=False,+ )+++exe_cli = _console_exe(CLI_EXE_NAME)+legacy_cli_exes = [_console_exe(name) for name in LEGACY_CLI_EXE_NAMES]coll = COLLECT(exe_gui,exe_cli,+ *legacy_cli_exes,a.binaries,a.zipfiles,a.datas,@@ -498,7 +510,7 @@ if sys.platform == "darwin":"CFBundleVersion": VERSION,"CFBundlePackageType": "APPL",# PyInstaller sets LSBackgroundOnly=True whenever the LAST executable- # of the COLLECT is a console one - and the `jarvis` CLI is. A+ # of the COLLECT is a console one - and the CLI is. A# background-only app gets no Dock icon, no menu bar and no windows# from LaunchServices; the v2.5.0 image shipped that way. This is a# windowed app (the CLI entry runs from a terminal, not throughdiff --git a/jarvis/__main__.py b/jarvis/__main__.pyindex ab379c05a5..0b03e951bf 100644--- a/jarvis/__main__.py+++ b/jarvis/__main__.py@@ -81,6 +81,7 @@ if len(sys.argv) >= 2 and sys.argv[1] == "update":raise SystemExit(_update_main(sys.argv[2:]))from jarvis import __version__+from jarvis.cli.command_name import main_commandfrom jarvis.core import config as cfgfrom jarvis.core import registryfrom jarvis.hardware import detection@@ -90,8 +91,9 @@ if TYPE_CHECKING:def _build_parser() -> argparse.ArgumentParser:+ command = main_command()parser = argparse.ArgumentParser(- prog="jarvis",+ prog=command,description="Dodaios — turn your computer into an AI agent.",)parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")@@ -103,7 +105,7 @@ def _build_parser() -> argparse.ArgumentParser:"component, status, message, hint) instead of the human report, so an ""installer can gate on the result without parsing prose. Exit codes are ""unchanged. Must follow the command flag — a LEADING `--json` is the "- "control CLI's own global option (`jarvis --json missions list`).",+ f"control CLI's own global option (`{command} --json missions list`).",)parser.add_argument("--plugins", action="store_true", help="List the plugin registry.")parser.add_argument(@@ -185,13 +187,13 @@ def _build_parser() -> argparse.ArgumentParser:"--tray",action="store_true",help="Only the tray icon, no backend and no window. A diagnostic "- "leftover — the product entry point is bare `jarvis`.",+ f"leftover — the product entry point is bare `{command}`.",)parser.add_argument("--foreground",action="store_true",help="Keep the desktop app attached to this terminal (logs here, closes "- "with it). By default `jarvis` typed in a terminal starts the app "+ f"with it). By default `{command}` typed in a terminal starts the app ""in the background and returns the prompt.",)parser.add_argument(@@ -201,7 +203,7 @@ def _build_parser() -> argparse.ArgumentParser:help="serve: start the headless web UI (browser/server, no desktop) — ""the cloud-first path for a VPS, Mac or Linux. Open the printed URL. ""update: install the newest published version "- "(`jarvis update --check` only reports).",+ f"(`{command} update --check` only reports).",)return parser@@ -565,7 +567,7 @@ def _run_control(argv: list[str]) -> int:root = build_root_command()try:- rv = root.main(args=argv, prog_name="jarvis", standalone_mode=False)+ rv = root.main(args=argv, prog_name=main_command(), standalone_mode=False)return rv if isinstance(rv, int) else 0except click.exceptions.Exit as exc:return int(getattr(exc, "exit_code", 0) or 0)@@ -733,7 +735,7 @@ def _launch_detached() -> int:launch_desktop_detached()except OSError as exc:print(f"Could not start Dodaios: {exc}", file=sys.stderr)- print("Try `jarvis --foreground` to see what goes wrong.", file=sys.stderr)+ print(f"Try `{main_command()} --foreground` to see what goes wrong.", file=sys.stderr)return 1if running:print("Dodaios is already running - bringing its window to the front.")@@ -760,7 +762,7 @@ def _missing_desktop_dependency() -> str | None:return ("The desktop window needs pywebview, which this install does not have.\n"" Install it: pip install 'personal-jarvis[full]'\n"- " Or run without a window: jarvis serve"+ f" Or run without a window: {main_command()} serve")diff --git a/jarvis/cli/app_update.py b/jarvis/cli/app_update.pyindex 1eed5ef881..c7baa41f7a 100644--- a/jarvis/cli/app_update.py+++ b/jarvis/cli/app_update.py@@ -42,6 +42,7 @@ from collections.abc import Callablefrom pathlib import Pathfrom typing import Any+from jarvis.cli.command_name import main_commandfrom jarvis.core.process_utils import NO_WINDOW_CREATIONFLAGSPROBE_FLAG = "--probe"@@ -307,7 +308,7 @@ def run_update(return 0print(f"Version {latest} is available (you have {current}).")if check_only:- print("Run `jarvis update` to install it.")+ print(f"Run `{main_command()} update` to install it.")return 0pid = running_app_pid()@@ -317,7 +318,7 @@ def run_update(if not stop_service(int(service)):print("The background service did not stop. Open Dodaios, quit it\n"- "from the tray icon, then run `jarvis update` again.",+ f"from the tray icon, then run `{main_command()} update` again.",file=sys.stderr,)return EXIT_APP_RUNNING@@ -326,7 +327,7 @@ def run_update(print("Dodaios is running, and it cannot be updated while it is open.\n""Either click Update inside the app, or quit it (tray icon -> Quit)\n"- "and run `jarvis update` again.",+ f"and run `{main_command()} update` again.",file=sys.stderr,)return EXIT_APP_RUNNING@@ -374,7 +375,7 @@ def run_update(def build_parser() -> argparse.ArgumentParser:parser = argparse.ArgumentParser(- prog="jarvis update",+ prog=f"{main_command()} update",description="Update Dodaios to the newest published version.",)parser.add_argument(diff --git a/jarvis/cli/command_name.py b/jarvis/cli/command_name.pynew file mode 100644index 0000000000..27d6157481--- /dev/null+++ b/jarvis/cli/command_name.py@@ -0,0 +1,27 @@+"""The command name help text and hints should show.++The app answers to ``dodaios`` and to its earlier names (``jarvis``,+``personal-jarvis``). A usage line or a "run this next" hint is most useful+when it repeats the name the person actually typed, so the entry points ask+here: the earlier name when the process was started under one, ``dodaios``+otherwise (``python -m jarvis``, the frozen executable, a launcher).++Standard library and ``jarvis.core.branding`` only: ``dodaios update`` imports+this before anything heavy is loaded.+"""++from __future__ import annotations++import sys+from pathlib import Path++from jarvis.core.branding import CLI_COMMAND_NAME, LEGACY_CLI_COMMAND_NAMES+++def main_command(argv0: str | None = None) -> str:+ """``dodaios``, or the earlier command name this process was started under."""+ stem = Path(sys.argv[0] if argv0 is None else argv0).stem.lower()+ return stem if stem in LEGACY_CLI_COMMAND_NAMES else CLI_COMMAND_NAME+++__all__ = ["main_command"]diff --git a/jarvis/cli_ctl/__main__.py b/jarvis/cli_ctl/__main__.pyindex 671b24b2d8..4fb0ebd128 100644--- a/jarvis/cli_ctl/__main__.py+++ b/jarvis/cli_ctl/__main__.py@@ -49,6 +49,7 @@ from jarvis.cli_ctl.commands import tasks as tasks_cmdfrom jarvis.cli_ctl.commands import telephony as telephony_cmdfrom jarvis.cli_ctl.commands import wiki as wiki_cmdfrom jarvis.cli_ctl.commands import workflows as workflows_cmd+from jarvis.core.branding import CONTROL_CLI_COMMAND_NAMEclass _CompatibleRootGroup(TyperGroup):@@ -80,7 +81,7 @@ class _CompatibleRootGroup(TyperGroup):app = typer.Typer(- name="jarvisctl",+ name=CONTROL_CLI_COMMAND_NAME,cls=_CompatibleRootGroup,no_args_is_help=True,add_completion=True,@@ -106,7 +107,7 @@ def _root(help="Override the control API key (Bearer token) for this call only.",),) -> None:- """jarvisctl — thin HTTP control client for a running Dodaios server."""+ """Thin HTTP control client for a running Dodaios server."""STATE["json"] = json_outputSTATE["url"] = urlSTATE["key"] = key@@ -127,11 +128,14 @@ def make_client(url: str | None = None, key: str | None = None) -> JarvisClient:@app.command()-def version() -> None:- """Print the jarvisctl version."""+def version(ctx: typer.Context) -> None:+ """Print the CLI version."""from jarvis import __version__- typer.echo(f"jarvisctl (Dodaios {__version__})")+ # The name the command was started under: dodaios, dodaiosctl, or an+ # earlier name of either.+ command = ctx.find_root().info_name or CONTROL_CLI_COMMAND_NAME+ typer.echo(f"{command} (Dodaios {__version__})")@app.command()diff --git a/jarvis/cli_ctl/commands/brain.py b/jarvis/cli_ctl/commands/brain.pyindex f5b129902f..c00104e88d 100644--- a/jarvis/cli_ctl/commands/brain.py+++ b/jarvis/cli_ctl/commands/brain.py@@ -41,7 +41,7 @@ def switch(yes: bool = options.yes_opt(),dry_run: bool = options.dry_opt(),) -> None:- """Switch the ACTIVE main brain provider (e.g. `jarvis brain switch openai`)."""+ """Switch the ACTIVE main brain provider (e.g. `dodaios brain switch openai`)."""invoke.run("POST", "/api/brain/switch",body={"provider": provider, "persist": persist},diff --git a/jarvis/cli_ctl/commands/marketplace.py b/jarvis/cli_ctl/commands/marketplace.pyindex fd8eb35090..e887813af1 100644--- a/jarvis/cli_ctl/commands/marketplace.py+++ b/jarvis/cli_ctl/commands/marketplace.py@@ -14,6 +14,7 @@ from typing import Anyimport typer+from jarvis.cli.command_name import main_commandfrom jarvis.cli_ctl import invoke, options, renderfrom jarvis.cli_ctl.client import ApiError@@ -152,8 +153,8 @@ def _report_installed(payload: dict[str, Any]) -> int:"Status","ready to use — Dodaios picked it up already, no restart needed",)- _field("Check", f"jarvis skills show {item_id}")- _field("Turn off", f"jarvis skills disable {item_id}")+ _field("Check", f"{main_command()} skills show {item_id}")+ _field("Turn off", f"{main_command()} skills disable {item_id}")render.line()return 0@@ -162,7 +163,7 @@ def _report_installed(payload: dict[str, Any]) -> int:"Status","on your list, but NOT connected — it cannot do anything yet",)- _field("Next", f"jarvis marketplace connect-start {item_id}")+ _field("Next", f"{main_command()} marketplace connect-start {item_id}")_field("Or", "open the app → Plugins → Community and press Connect")render.line()return 0@@ -170,7 +171,7 @@ def _report_installed(payload: dict[str, Any]) -> int:_field("Status", f"{payload.get('state') or 'unknown'} — Dodaios will not use it")if payload.get("problem"):_field("Problem", str(payload["problem"]))- _field("Look", f"jarvis skills show {item_id}")+ _field("Look", f"{main_command()} skills show {item_id}")render.line()return 1@@ -198,7 +199,7 @@ def _report_already_there(kind: str, item_id: str, client: Any) -> int:)if detail.get("error"):_field("Problem", str(detail["error"]))- _field("Look", f"jarvis skills show {item_id}")+ _field("Look", f"{main_command()} skills show {item_id}")render.line()return 0 if ready else 1status = "unknown"@@ -214,7 +215,7 @@ def _report_already_there(kind: str, item_id: str, client: Any) -> int:_field("Status", "connected and usable")else:_field("Status", f"{status} — connect it before it can do anything")- _field("Next", f"jarvis marketplace connect-start {item_id}")+ _field("Next", f"{main_command()} marketplace connect-start {item_id}")render.line()return 0@@ -258,7 +259,7 @@ def install(render.error(f"{item_id!r} is not in the marketplace."f"{_suggest(index if isinstance(index, dict) else {}, item_id)} "- "Run `jarvis marketplace browse` to see everything on offer."+ f"Run `{main_command()} marketplace browse` to see everything on offer.")raise typer.Exit(code=1)kind, entry = founddiff --git a/jarvis/cli_ctl/commands/outputs.py b/jarvis/cli_ctl/commands/outputs.pyindex 9649c01610..2d9fc6a327 100644--- a/jarvis/cli_ctl/commands/outputs.py+++ b/jarvis/cli_ctl/commands/outputs.py@@ -31,7 +31,7 @@ def files(slug: str = typer.Argument(...)) -> None:def graph(slug: str = typer.Argument(...)) -> None:"""Print a session's mission-map page (self-contained HTML node graph).- Pipe it to a file to keep or open it: ``jarvis outputs graph <slug> > map.html``.+ Pipe it to a file to keep or open it: ``dodaios outputs graph <slug> > map.html``."""invoke.run("GET", f"/api/outputs/{slug}/graph")diff --git a/jarvis/cli_ctl/doctor.py b/jarvis/cli_ctl/doctor.pyindex 0d9ce2d889..9d0ca2c49b 100644--- a/jarvis/cli_ctl/doctor.py+++ b/jarvis/cli_ctl/doctor.py@@ -17,6 +17,7 @@ import jsonimport osimport random+from jarvis.cli.command_name import main_commandfrom jarvis.cli_ctl import discovery, pathsfrom jarvis.cli_ctl.config import DEFAULT_BASE_URL@@ -57,7 +58,7 @@ def unreachable_message(base_url: str | None) -> str:return _pick((f"No answer from {base_url}. That target comes from --url/env/""config, so check that machine, tunnel, or port — starting the "- "local desktop app won't change anything here. `jarvis auth "+ f"local desktop app won't change anything here. `{main_command()} auth ""login` re-points the CLI if the address moved.",f"The configured target {base_url} stayed silent. It's an ""explicit remote/custom address: verify the host is up and the "diff --git a/jarvis/core/branding.py b/jarvis/core/branding.pyindex e0f0def3fe..ae5a8a5a72 100644--- a/jarvis/core/branding.py+++ b/jarvis/core/branding.py@@ -58,15 +58,25 @@ DISTRIBUTION_NAME = PERSISTENT_SLUG# Terminal commands the install puts on PATH. No command may equal the branded# launcher's name ignoring case: on Windows and macOS they would be one file.-CLI_COMMAND_NAME = "jarvis"-CLI_COMMAND_ALIAS = PERSISTENT_SLUG-CONTROL_CLI_COMMAND_NAME = "jarvisctl"-CLI_COMMAND_NAMES = (CLI_COMMAND_NAME, CLI_COMMAND_ALIAS, CONTROL_CLI_COMMAND_NAME)+# The first two are the names help text, hints and documentation use.+CLI_COMMAND_NAME = "dodaios"+CONTROL_CLI_COMMAND_NAME = "dodaiosctl"+# Earlier names of the two commands. They stay installed and keep working:+# scripts, shell history and other tools call them.+LEGACY_CLI_COMMAND_NAMES = ("jarvis", PERSISTENT_SLUG)+LEGACY_CONTROL_CLI_COMMAND_NAMES = ("jarvisctl",)+CLI_COMMAND_NAMES = (+ CLI_COMMAND_NAME,+ CONTROL_CLI_COMMAND_NAME,+ *LEGACY_CLI_COMMAND_NAMES,+ *LEGACY_CONTROL_CLI_COMMAND_NAMES,+)# First line of the PATH block written into a shell profile, and the fish-# drop-in that carries the same block. Both are found again on uninstall.+# drop-in that carries the same block. Both are found again on a later install+# and on uninstall, so the line keeps the spelling existing profiles carry: it+# names the earlier commands, and the block puts every command on PATH.SHELL_PROFILE_MARKER = (- f"# {PERSISTENT_PRODUCT_NAME}: command-line tools "- f"({CLI_COMMAND_NAME}, {CLI_COMMAND_ALIAS})"+ f"# {PERSISTENT_PRODUCT_NAME}: command-line tools ({', '.join(LEGACY_CLI_COMMAND_NAMES)})")FISH_CONF_FILE_NAME = f"{PERSISTENT_SLUG}.fish"@@ -157,7 +167,6 @@ MCP_AGENTS_SERVER_NAME = "dodaios-agents"LEGACY_MCP_AGENTS_SERVER_NAMES = ("jarvis-agents",)__all__ = [- "CLI_COMMAND_ALIAS","CLI_COMMAND_NAME","CLI_COMMAND_NAMES","CONFIG_FILE_NAME",@@ -165,6 +174,8 @@ __all__ = ["CONTROL_KEY_PREFIX","DEFAULT_OFFICIAL_REPO_SLUG","DEFAULT_INSTALL_DIR_NAME",+ "LEGACY_CLI_COMMAND_NAMES",+ "LEGACY_CONTROL_CLI_COMMAND_NAMES","LEGACY_OFFICIAL_REPO_SLUGS","LEGACY_PLUGIN_GROUP_NAMESPACES","DESKTOP_OUTPUT_MIRROR_DIR_NAME",diff --git a/jarvis/plugins/tool/computer_use_tool.py b/jarvis/plugins/tool/computer_use_tool.pyindex 2c8cbd8f80..0ac58a3b43 100644--- a/jarvis/plugins/tool/computer_use_tool.py+++ b/jarvis/plugins/tool/computer_use_tool.py@@ -205,7 +205,7 @@ class ComputerUseTool:"computer_use.enabled=true — you may offer to set it through the ""config self-mod path (ask-tier, requires the user's confirmation ""and an app restart), or the user can run: "- "jarvis config set computer_use.enabled true. "+ "dodaios config set computer_use.enabled true. ""Do not retry this tool in this turn."),)diff --git a/jarvis/setup/cli_path.py b/jarvis/setup/cli_path.pyindex 89af8949bd..b6c2843907 100644--- a/jarvis/setup/cli_path.py+++ b/jarvis/setup/cli_path.py@@ -1,8 +1,9 @@-"""Put the ``jarvis`` commands on the user's PATH — Windows, macOS and Linux.+"""Put the ``dodaios`` commands on the user's PATH — Windows, macOS and Linux.The one-line installer builds a private virtualenv inside the install folder,-so its console scripts (``jarvis``, ``personal-jarvis``, ...) start out-reachable only by their full path. This module makes them plain terminal+so its console scripts (``dodaios``, ``dodaiosctl`` and the earlier names+``jarvis``, ``personal-jarvis``, ``jarvisctl``) start out reachable only by+their full path. This module makes them plain terminalcommands, per user and without administrator rights:* **macOS / Linux** — a symlink per command in ``~/.local/bin`` (the XDG user@@ -19,8 +20,12 @@ Everything is idempotent (a repeat install changes nothing) and conservative:an unrelated command that already owns a name is kept, never overwritten.:func:`remove_commands` undoes all of it for the uninstaller.+An install made before a command existed gains it on its next installer or+update run: the new name is linked beside the old ones, and the profile block,+found by its unchanged first line, is not written a second time.+Stdlib only (``jarvis.core.branding`` is too): ``install/installer.py`` imports-this before the venv has any third-party package, and ``jarvis --uninstall``+this before the venv has any third-party package, and ``dodaios --uninstall``must not need one either."""@@ -39,10 +44,10 @@ from jarvis.core.branding import (SHELL_PROFILE_MARKER,)-#: Every command the install exposes. ``personal-jarvis`` is an alias of-#: ``jarvis``; ``jarvisctl`` is the control CLI's historic name. There is no-#: ``personaljarvis``: on Windows it would be the same file as the branded-#: launcher ``PersonalJarvis.exe`` (``jarvis/ui/icon_utils.py``).+#: Every command the install exposes: ``dodaios`` and ``dodaiosctl``, then the+#: earlier names of the two (``jarvis``, ``personal-jarvis``, ``jarvisctl``).+#: There is no ``personaljarvis``: on Windows it would be the same file as the+#: branded launcher ``PersonalJarvis.exe`` (``jarvis/ui/icon_utils.py``).COMMAND_NAMES: tuple[str, ...] = CLI_COMMAND_NAMES#: First line of the block written into a shell profile. Finding it means the@@ -382,7 +387,7 @@ def install_commands(report.errors.append(f"could not add {target_dir} to PATH: {exc}")# A command of the same name earlier on PATH wins over ours. Say so rather- # than let `jarvis` silently start something else.+ # than let `dodaios` silently start something else.if not report.needs_new_terminal:for command in report.linked:found = which(command, path=environ.get("PATH") or environ.get("Path"))diff --git a/jarvis/setup/wizard.py b/jarvis/setup/wizard.pyindex eca848e522..62183a6466 100644--- a/jarvis/setup/wizard.py+++ b/jarvis/setup/wizard.py@@ -51,6 +51,7 @@ from rich.padding import Paddingfrom rich.panel import Panelfrom rich.theme import Theme+from jarvis.cli.command_name import main_commandfrom jarvis.core import config as cfgfrom jarvis.hardware import detection@@ -1327,7 +1328,7 @@ def run() -> int:return 0except _TermsDeclined:_println("\nTerms not accepted — setup stopped. You must accept the terms")- _println("to use Dodaios. Re-run `jarvis --wizard` when you're ready.")+ _println(f"to use Dodaios. Re-run `{main_command()} --wizard` when you're ready.")return 3except KeyboardInterrupt:_println("\n\n⚠ Setup aborted. Re-run: `python -m jarvis`")diff --git a/jarvis/trigger/backends/noop.py b/jarvis/trigger/backends/noop.pyindex 9e22ca773a..63681466cb 100644--- a/jarvis/trigger/backends/noop.py+++ b/jarvis/trigger/backends/noop.py@@ -26,6 +26,8 @@ from __future__ import annotationsimport logging+from jarvis.core.branding import CLI_COMMAND_NAME+log = logging.getLogger(__name__)# Process-wide "already explained" flag so the message logs exactly once.@@ -58,7 +60,7 @@ def explain_unavailable() -> str:return ("this host cannot register a global keyboard shortcut. Voice still ""works via the wake word, and dictation can be started from the "- "Dodaios Bar, the Dictation view, or `jarvis api dictation start`."+ f"Dodaios Bar, the Dictation view, or `{CLI_COMMAND_NAME} api dictation start`.")if platform == "linux":@@ -70,7 +72,7 @@ def explain_unavailable() -> str:return ("Wayland does not let an application grab a global shortcut — ""the compositor owns them by design. Bind a shortcut in your "- "desktop settings to `jarvis api dictation start` instead; "+ f"desktop settings to `{CLI_COMMAND_NAME} api dictation start` instead; ""voice also still works via the wake word.")return (@@ -78,7 +80,7 @@ def explain_unavailable() -> str:"`pip install 'personal-jarvis[desktop-linux]'` enables global ""shortcuts (it builds evdev, so a C compiler and the kernel ""headers are required). Until then, use the wake word, the Dodaios "- "Bar, or `jarvis api dictation start`."+ f"Bar, or `{CLI_COMMAND_NAME} api dictation start`.")if platform == "darwin":diff --git a/jarvis/ui/web/computer_use_routes.py b/jarvis/ui/web/computer_use_routes.pyindex 73ff4c66fc..207ab5be7b 100644--- a/jarvis/ui/web/computer_use_routes.py+++ b/jarvis/ui/web/computer_use_routes.py@@ -22,6 +22,7 @@ from typing import Anyfrom fastapi import APIRouter, HTTPException, Queryfrom pydantic import BaseModel, Field+from jarvis.core.branding import CLI_COMMAND_NAMEfrom jarvis.core.config import ComputerUseConfigfrom jarvis.harness import cu_run_registry@@ -68,7 +69,7 @@ def _require_cu_wired() -> None:"computer-use is not active on this machine: ""[computer_use].enabled is false (the shipped default) or no ""vision engine could be built. Enable it with "- "`jarvis config set computer_use.enabled true` and restart."+ f"`{CLI_COMMAND_NAME} config set computer_use.enabled true` and restart."),)diff --git a/packaging/README.md b/packaging/README.mdindex b54fdd3136..8755471581 100644--- a/packaging/README.md+++ b/packaging/README.md@@ -18,8 +18,8 @@ GitHub Release for the tag.Shared pieces that are not per-OS:- **`../jarvis.spec`** - the PyInstaller build every script starts from. One- `onedir` bundle with two executables: the windowed launcher- (`PersonalJarvis`) and the console CLI (`jarvis`).+ `onedir` bundle: the windowed launcher (`PersonalJarvis`) and the console CLI+ (`dodaios`, built a second time as `jarvis`, its earlier name).- **`pyinstaller_rthook_frozen.py`** - runtime hook that points a frozeninstall's `jarvis.toml` and data directory at the per-user applicationdirectory, so an upgrade cannot overwrite settings and an uninstall cannotdiff --git a/packaging/linux/README.md b/packaging/linux/README.mdindex 86694fa75e..f95dfee2c9 100644--- a/packaging/linux/README.md+++ b/packaging/linux/README.md@@ -5,7 +5,7 @@| Artifact | Path | What it is ||---|---|---|| `PersonalJarvis-Linux-x86_64.AppImage` | `dist/installers/` | One executable file. No Python, no pip, no root. Download, `chmod +x`, run. |-| `personal-jarvis_<version>_amd64.deb` | `dist/installers/` | The same tree as a normal Debian package: `apt install ./personal-jarvis_*.deb` registers the app in the menu and puts `jarvis` on `PATH`. Built only when `dpkg-deb` is present. |+| `personal-jarvis_<version>_amd64.deb` | `dist/installers/` | The same tree as a normal Debian package: `apt install ./personal-jarvis_*.deb` registers the app in the menu and puts `dodaios` on `PATH`. Built only when `dpkg-deb` is present. |Both are produced from one PyInstaller `onedir` freeze and one AppDir, so a bugcan only exist in both or in neither.@@ -94,15 +94,16 @@ chmod +x PersonalJarvis-Linux-x86_64.AppImage./PersonalJarvis-Linux-x86_64.AppImage --doctor```-To type `jarvis` instead, link it once:+To type `dodaios` instead, link it once:```bashmkdir -p ~/.local/bin-ln -sf "$PWD/PersonalJarvis-Linux-x86_64.AppImage" ~/.local/bin/jarvis+ln -sf "$PWD/PersonalJarvis-Linux-x86_64.AppImage" ~/.local/bin/dodaios```-The Debian package does this for you: it installs `/usr/bin/jarvis` (the-console entry) and `/usr/bin/personal-jarvis` (the launcher).+The Debian package does this for you: it installs `/usr/bin/dodaios` (the+console entry), `/usr/bin/jarvis` (the same entry under its earlier name) and+`/usr/bin/personal-jarvis` (the launcher).On a host without FUSE - containers, some hardened servers - run the AppImagewith `--appimage-extract-and-run` (or `APPIMAGE_EXTRACT_AND_RUN=1`). That is@@ -111,7 +112,7 @@ also how the build machine runs `appimagetool` itself.## Desktop registration* **`.deb`** registers the app the normal way: a `.desktop` entry in- `/usr/share/applications`, the icon in the hicolor theme, and the two+ `/usr/share/applications`, the icon in the hicolor theme, and thecommands on `PATH`. `apt remove personal-jarvis` takes all of it away again.* **AppImage** carries its `.desktop` entry and icon inside itself, which iswhat AppImageLauncher and `appimaged` read when they offer to "integrate"diff --git a/packaging/linux/build.sh b/packaging/linux/build.shindex abd7539d36..0a3c4cf308 100755--- a/packaging/linux/build.sh+++ b/packaging/linux/build.sh@@ -53,6 +53,8 @@ APPIMAGETOOL_CACHE="${DIST_DIR}/.build-tools/appimagetool-${APPIMAGETOOL_VERSIONICON_SOURCE="${REPO_ROOT}/assets/icons/jarvis-gigi-256.png"DESKTOP_FILE_NAME="personal-jarvis.desktop"+# The console command and its earlier name; both ship (jarvis.spec builds both).+CLI_EXE_NAMES=("dodaios" "jarvis")ICON_FILE_NAME="personal-jarvis.png"log() { printf '[linux-build] %s\n' "$*"; }@@ -172,16 +174,19 @@ if building; thenif [ ! -e "${APPDIR}/usr/bin/Jarvis" ]; thenln -s "${GUI_EXE_NAME}" "${APPDIR}/usr/bin/Jarvis"fi- if [ ! -e "${APPDIR}/usr/bin/jarvis" ]; then- # On Linux both targets are the same program - PyInstaller's console flag- # has no meaning here - so a link keeps the CLI entry the contract asks for- # even when the spec ships only one executable. Say it loudly: on Windows- # and macOS a missing console target is a real gap, not a cosmetic one.- log "WARNING: the freeze has no 'jarvis' executable - jarvis.spec has no console CLI EXE target. Linking it to ${GUI_EXE_NAME} so the CLI entry exists."- ln -s "${GUI_EXE_NAME}" "${APPDIR}/usr/bin/jarvis"- fi+ for cli_name in "${CLI_EXE_NAMES[@]}"; do+ if [ ! -e "${APPDIR}/usr/bin/${cli_name}" ]; then+ # On Linux both targets are the same program - PyInstaller's console flag+ # has no meaning here - so a link keeps the CLI entry the contract asks+ # for even when the spec ships no such executable. Say it loudly: on+ # Windows and macOS a missing console target is a real gap, not a+ # cosmetic one.+ log "WARNING: the freeze has no '${cli_name}' executable - jarvis.spec has no console CLI EXE target of that name. Linking it to ${GUI_EXE_NAME} so the CLI entry exists."+ ln -s "${GUI_EXE_NAME}" "${APPDIR}/usr/bin/${cli_name}"+ fi+ doneelse- log "[dry-run] would copy ${FREEZE_DIR}/. into ${APPDIR}/usr/bin/ and link Jarvis/jarvis to ${GUI_EXE_NAME}"+ log "[dry-run] would copy ${FREEZE_DIR}/. into ${APPDIR}/usr/bin/ and link Jarvis/${CLI_EXE_NAMES[*]} to ${GUI_EXE_NAME}"firun "${PYTHON}" "${SCRIPT_DIR}/make_desktop_entry.py" \@@ -296,7 +301,9 @@ Description: AI agent for your computeragents. This package ships the self-contained desktop build; it needs nosystem Python and no pip installation.EOF- ln -sf /opt/PersonalJarvis/usr/bin/jarvis "${DEB_ROOT}/usr/bin/jarvis"+ for cli_name in "${CLI_EXE_NAMES[@]}"; do+ ln -sf "/opt/PersonalJarvis/usr/bin/${cli_name}" "${DEB_ROOT}/usr/bin/${cli_name}"+ doneln -sf /opt/PersonalJarvis/AppRun "${DEB_ROOT}/usr/bin/personal-jarvis"cp "${ICON_SOURCE}" "${DEB_ROOT}/usr/share/icons/hicolor/256x256/apps/${ICON_FILE_NAME}"fidiff --git a/packaging/macos/README.md b/packaging/macos/README.mdindex f10723fd8b..5a7e985551 100644--- a/packaging/macos/README.md+++ b/packaging/macos/README.md@@ -270,23 +270,26 @@ alone.## Reaching the CLIThe bundle ships the console entry at-`Personal Jarvis.app/Contents/MacOS/jarvis`. It is the same program as the-pip-installed `jarvis` command:+`Personal Jarvis.app/Contents/MacOS/dodaios`. It is the same program as the+pip-installed `dodaios` command:```bash-"/Applications/Personal Jarvis.app/Contents/MacOS/jarvis" --version-"/Applications/Personal Jarvis.app/Contents/MacOS/jarvis" serve+"/Applications/Personal Jarvis.app/Contents/MacOS/dodaios" --version+"/Applications/Personal Jarvis.app/Contents/MacOS/dodaios" serve```-To type plain `jarvis`, link it once:+To type plain `dodaios`, link it once:```bash-sudo ln -sf "/Applications/Personal Jarvis.app/Contents/MacOS/jarvis" /usr/local/bin/jarvis+sudo ln -sf "/Applications/Personal Jarvis.app/Contents/MacOS/dodaios" /usr/local/bin/dodaios# or, without sudo, if ~/.local/bin is on your PATH:mkdir -p ~/.local/bin-ln -sf "/Applications/Personal Jarvis.app/Contents/MacOS/jarvis" ~/.local/bin/jarvis+ln -sf "/Applications/Personal Jarvis.app/Contents/MacOS/dodaios" ~/.local/bin/dodaios```+`Contents/MacOS/jarvis` is the same entry under the command's earlier name; a+link made to it before keeps working.+The symlink keeps working across updates because the app bundle is replaced atthe same path. Run the CLI through the **bundle**, never through a copy of theexecutable moved elsewhere: macOS ties privacy grants to the bundle identity,diff --git a/packaging/macos/build.sh b/packaging/macos/build.shindex 7d089201a9..52256b1629 100755--- a/packaging/macos/build.sh+++ b/packaging/macos/build.sh@@ -259,8 +259,11 @@ log "running PyInstaller"if building; then[ -d "${APP_BUNDLE}" ] || die "PyInstaller did not produce '${APP_BUNDLE}'. jarvis.spec must contain a darwin BUNDLE(...) block that names the app '${APP_NAME}'."- [ -x "${APP_BUNDLE}/Contents/MacOS/jarvis" ] \- || die "'${APP_BUNDLE}/Contents/MacOS/jarvis' is missing. The bundle must ship the console CLI entry so 'jarvis serve' works from a native install."+ # The console command and its earlier name; jarvis.spec builds both.+ for cli_name in dodaios jarvis; do+ [ -x "${APP_BUNDLE}/Contents/MacOS/${cli_name}" ] \+ || die "'${APP_BUNDLE}/Contents/MacOS/${cli_name}' is missing. The bundle must ship the console CLI entry so '${cli_name} serve' works from a native install."+ done# CFBundleExecutable must exist or the app cannot launch at all, and Finder# reports it as damaged rather than naming the missing file.BUNDLE_EXECUTABLE="$(diff --git a/packaging/windows/PersonalJarvis.iss b/packaging/windows/PersonalJarvis.issindex b65ff09ef8..760d30f867 100644--- a/packaging/windows/PersonalJarvis.iss+++ b/packaging/windows/PersonalJarvis.iss@@ -46,7 +46,10 @@#define AppPublisher "Personal Jarvis"#define AppUrl "https://github.com/Dodaios/Dodaios"#define GuiExeName "PersonalJarvis.exe"-#define CliExeName "jarvis.exe"+#define CliExeName "dodaios.exe"+; The command's earlier name. The bundle ships it beside CliExeName, in the+; same folder the PATH task adds, so both names work in a terminal.+#define LegacyCliExeName "jarvis.exe"#define UserDataDirDisplay "%LOCALAPPDATA%\Jarvis"[Setup]@@ -98,7 +101,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl"[Tasks]Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked-Name: "addtopath"; Description: "Add the ""jarvis"" command to PATH (lets you run ""jarvis serve"" in any terminal)"; GroupDescription: "Command line"+Name: "addtopath"; Description: "Add the ""dodaios"" command to PATH (lets you run ""dodaios serve"" in any terminal)"; GroupDescription: "Command line"[Files]Source: "{#SourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirsdiff --git a/packaging/windows/build.ps1 b/packaging/windows/build.ps1index 5771b26dd4..26ce62fcbe 100644--- a/packaging/windows/build.ps1+++ b/packaging/windows/build.ps1@@ -151,7 +151,7 @@ if ($SkipPyInstaller) {-WorkingDirectory $RepoRoot -What "pyinstaller"}-foreach ($required in @("PersonalJarvis.exe", "jarvis.exe")) {+foreach ($required in @("PersonalJarvis.exe", "dodaios.exe", "jarvis.exe")) {$candidate = Join-Path $BundleDir $requiredif (-not (Test-Path $candidate)) {Stop-WithError "the frozen bundle is missing $required (expected at $candidate)"diff --git a/pyproject.toml b/pyproject.tomlindex 65d2bc2225..13ae335ff2 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -506,17 +506,22 @@ tts-eval = [][project.scripts]+# `dodaios` starts the app (and `dodaios update` updates it). The names below it+# are the command's earlier names: the same entry point, kept so that scripts,+# shell history and other tools that call them keep working.+# Never add a command that spells the branded launcher ignoring case (a+# `personaljarvis` alias today): Windows paths ignore case, and the venv's+# Scripts folder already holds `PersonalJarvis.exe`.+dodaios = "jarvis.__main__:main"jarvis = "jarvis.__main__:main"-# Same entry point under the product name, so `personal-jarvis` in a terminal-# starts (and `personal-jarvis update` updates) the app exactly like `jarvis`.-# Never add a `personaljarvis` alias: Windows paths ignore case, and the venv's-# Scripts folder already holds `PersonalJarvis.exe`, the branded launcher.personal-jarvis = "jarvis.__main__:main"# Phase 8.5 — Review-Pipeline-Run-GC (Plan §6.5).jarvis-review-gc = "jarvis.cli.review_gc:main"# Phase 8.6 — Review-Pipeline-Eval-Harness (Plan §6.6).jarvis-review-eval = "jarvis.cli.review_eval:main"-# jarvisctl — control CLI for a running Dodaios instance.+# dodaiosctl — control CLI for a running Dodaios instance. `jarvisctl` and+# `jctl` are its earlier names and stay.+dodaiosctl = "jarvis.cli_ctl.__main__:main"jarvisctl = "jarvis.cli_ctl.__main__:main"jctl = "jarvis.cli_ctl.__main__:main"diff --git a/scripts/ci/gen_cli_reference.py b/scripts/ci/gen_cli_reference.pyindex a14ebb43cb..4a26044b2b 100644--- a/scripts/ci/gen_cli_reference.py+++ b/scripts/ci/gen_cli_reference.py@@ -23,6 +23,7 @@ import click # noqa: E402import typer # noqa: E402from jarvis.cli_ctl.__main__ import app # noqa: E402+from jarvis.core.branding import CLI_COMMAND_NAME, PRODUCT_NAME # noqa: E402_OUT = _REPO / "docs" / "jarvis-cli-reference.md"@@ -65,20 +66,20 @@ def _walk(cmd: click.Command, prefix: str, lines: list[str]) -> None:summary = (cmd.help or cmd.short_help or "").strip().splitlines()summary_line = summary[0] if summary else ""usage = _usage(cmd)- sig = f"jarvis {prefix}" + (f" {usage}" if usage else "")+ sig = f"{CLI_COMMAND_NAME} {prefix}" + (f" {usage}" if usage else "")lines.append(f"- `{sig}` — {summary_line}")def _build_reference() -> str:root = typer.main.get_command(app)if not _is_group(root): # defensive: a bare single-command app has no tree- raise SystemExit("jarvisctl root is not a command group — cannot build reference")+ raise SystemExit("the CLI root is not a command group — cannot build reference")lines = [- "# Jarvis CLI — Command Reference",+ f"# {PRODUCT_NAME} CLI — Command Reference","","_Generated from the curated command tree by ""`scripts/ci/gen_cli_reference.py` — do not edit by hand. Every mounted "- "REST endpoint is additionally reachable via `jarvis api <tag> <op>`._",+ f"REST endpoint is additionally reachable via `{CLI_COMMAND_NAME} api <tag> <op>`._","",]for name in sorted(root.commands):diff --git a/tests/unit/cli/test_command_name.py b/tests/unit/cli/test_command_name.pynew file mode 100644index 0000000000..236fc07e35--- /dev/null+++ b/tests/unit/cli/test_command_name.py@@ -0,0 +1,100 @@+"""Help text and hints name the command the person typed.++``dodaios`` is the command; ``jarvis`` and ``personal-jarvis`` are its earlier+names and keep working. Usage lines and "run this next" hints repeat an earlier+name when the process was started under it, and say ``dodaios`` otherwise.+"""++from __future__ import annotations++import re+import sys++import pytest++import jarvis.__main__ as entry+from jarvis import __version__+from jarvis.cli import app_update+from jarvis.cli.command_name import main_command+from jarvis.core.branding import (+ CLI_COMMAND_NAME,+ CONTROL_CLI_COMMAND_NAME,+ LEGACY_CLI_COMMAND_NAMES,+)+++ ("argv0", "expected"),+ [+ ("dodaios", "dodaios"),+ ("/home/u/.local/bin/dodaios", "dodaios"),+ ("/home/u/.local/bin/dodaios.exe", "dodaios"),+ # An earlier name is repeated back, whatever its case or extension.+ ("jarvis", "jarvis"),+ ("/home/u/.local/bin/JARVIS.EXE", "jarvis"),+ ("/usr/bin/personal-jarvis", "personal-jarvis"),+ # Anything else is not a command name of ours: the primary name.+ ("/repo/jarvis/__main__.py", "dodaios"),+ ("/Applications/Personal Jarvis.app/Contents/MacOS/PersonalJarvis", "dodaios"),+ ("/opt/venv/bin/jarvisctl", "dodaios"),+ ("-c", "dodaios"),+ ("", "dodaios"),+ ],+)+def test_the_command_name_follows_how_the_process_was_started(argv0: str, expected: str) -> None:+ assert main_command(argv0) == expected++[email protected](sys.platform != "win32", reason="backslash paths are Windows paths")+ ("argv0", "expected"),+ [+ (r"C:\Users\u\.personal-jarvis\bin\dodaios.exe", "dodaios"),+ (r"C:\Users\u\.personal-jarvis\bin\JARVIS.EXE", "jarvis"),+ (r"C:\Users\u\.personal-jarvis\bin\personal-jarvis.exe", "personal-jarvis"),+ (r"C:\Program Files\Personal Jarvis\PersonalJarvis.exe", "dodaios"),+ ],+)+def test_the_command_name_is_read_from_a_windows_launcher_path(argv0: str, expected: str) -> None:+ assert main_command(argv0) == expected+++def test_the_primary_name_is_the_branding_constant() -> None:+ assert main_command("") == CLI_COMMAND_NAME == "dodaios"+ assert CONTROL_CLI_COMMAND_NAME == "dodaiosctl"+ assert LEGACY_CLI_COMMAND_NAMES == ("jarvis", "personal-jarvis")++[email protected]("command", ["dodaios", "jarvis", "personal-jarvis"])+def test_the_launcher_help_names_the_invoked_command(+ command: str, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]+) -> None:+ monkeypatch.setattr(sys, "argv", [f"/usr/local/bin/{command}", "--help"])++ parser = entry._build_parser()++ assert parser.prog == command+ # Without styling or layout: a newer argparse colours help on a terminal.+ help_text = " ".join(re.sub(r"\x1b\[[0-9;]*m", "", parser.format_help()).split())+ assert help_text.startswith(f"usage: {command} ")+ assert f"`{command} update --check`" in help_text+ with pytest.raises(SystemExit):+ parser.parse_args(["--version"])+ assert capsys.readouterr().out.strip() == f"{command} {__version__}"+++def test_the_launcher_help_says_dodaios_when_run_as_a_module(+ monkeypatch: pytest.MonkeyPatch,+) -> None:+ monkeypatch.setattr(sys, "argv", ["/repo/jarvis/__main__.py"])++ assert entry._build_parser().prog == "dodaios"+ assert app_update.build_parser().prog == "dodaios update"+++def test_the_update_command_help_names_the_invoked_command(+ monkeypatch: pytest.MonkeyPatch,+) -> None:+ monkeypatch.setattr(sys, "argv", ["jarvis", "update", "--help"])++ assert app_update.build_parser().prog == "jarvis update"diff --git a/tests/unit/cli_ctl/test_command_names.py b/tests/unit/cli_ctl/test_command_names.pynew file mode 100644index 0000000000..9783ba4858--- /dev/null+++ b/tests/unit/cli_ctl/test_command_names.py@@ -0,0 +1,69 @@+"""The control CLI answers under every one of its names and repeats the one used.++``dodaiosctl`` is the command; ``jarvisctl`` and ``jctl`` are its earlier+names, and ``dodaios <group> ...`` / ``jarvis <group> ...`` route into the same+command tree.+"""++from __future__ import annotations++import re+import sys++import pytest++import jarvis.__main__ as entry+from jarvis import __version__+from jarvis.cli_ctl.__main__ import app, build_root_command+from jarvis.core.branding import CONTROL_CLI_COMMAND_NAME++_NAMES = ["dodaiosctl", "jarvisctl", "jctl", "dodaios", "jarvis"]+_STYLE = re.compile(r"\x1b\[[0-9;]*m")+++def _plain(text: str) -> str:+ """Help output without terminal styling or layout: CI renders it in colour."""+ return " ".join(_STYLE.sub("", text).split())+++def test_the_control_app_is_named_after_the_primary_command() -> None:+ assert app.info.name == CONTROL_CLI_COMMAND_NAME == "dodaiosctl"++[email protected]("name", _NAMES)+def test_the_version_line_repeats_the_invoked_name(+ name: str, capsys: pytest.CaptureFixture[str]+) -> None:+ root = build_root_command(["version"])++ root.main(args=["version"], prog_name=name, standalone_mode=False)++ assert capsys.readouterr().out.strip() == f"{name} (Dodaios {__version__})"++[email protected]("name", _NAMES)+def test_the_usage_line_repeats_the_invoked_name(+ name: str, capsys: pytest.CaptureFixture[str]+) -> None:+ root = build_root_command(["--help"])++ root.main(args=["--help"], prog_name=name, standalone_mode=False)++ assert f"Usage: {name} [OPTIONS] COMMAND [ARGS]..." in _plain(capsys.readouterr().out)+++ ("argv0", "expected"),+ [("/usr/local/bin/dodaios", "dodaios"), ("/usr/local/bin/jarvis", "jarvis")],+)+def test_a_control_command_through_the_launcher_keeps_the_typed_name(+ argv0: str,+ expected: str,+ monkeypatch: pytest.MonkeyPatch,+ capsys: pytest.CaptureFixture[str],+) -> None:+ monkeypatch.setattr(sys, "argv", [argv0, "version"])++ assert entry._run_control(["version"]) == 0++ assert capsys.readouterr().out.strip() == f"{expected} (Dodaios {__version__})"diff --git a/tests/unit/cli_ctl/test_commands_auth.py b/tests/unit/cli_ctl/test_commands_auth.pyindex 3004456228..7ab5188148 100644--- a/tests/unit/cli_ctl/test_commands_auth.py+++ b/tests/unit/cli_ctl/test_commands_auth.py@@ -10,7 +10,11 @@ runner = CliRunner()def test_version_runs_without_server():res = runner.invoke(app, ["version"])assert res.exit_code == 0- assert "jarvisctl" in res.stdout+ assert "dodaiosctl" in res.stdout+ # The earlier name still runs it, and is the name it answers with.+ res = runner.invoke(app, ["version"], prog_name="jarvisctl")+ assert res.exit_code == 0+ assert res.stdout.startswith("jarvisctl ")def test_login_stores_key_after_successful_probe(mock_api, tmp_path):diff --git a/tests/unit/core/test_branding.py b/tests/unit/core/test_branding.pyindex a7c4d1b5d8..c55f3566ac 100644--- a/tests/unit/core/test_branding.py+++ b/tests/unit/core/test_branding.py@@ -22,10 +22,11 @@ _CURRENT_IDENTITY = {"LAUNCHER_ENTRY_NAME": "Personal Jarvis","CONFIG_FILE_NAME": "jarvis.toml","DISTRIBUTION_NAME": "personal-jarvis",- "CLI_COMMAND_NAME": "jarvis",- "CLI_COMMAND_ALIAS": "personal-jarvis",- "CONTROL_CLI_COMMAND_NAME": "jarvisctl",- "CLI_COMMAND_NAMES": ("jarvis", "personal-jarvis", "jarvisctl"),+ "CLI_COMMAND_NAME": "dodaios",+ "CONTROL_CLI_COMMAND_NAME": "dodaiosctl",+ "LEGACY_CLI_COMMAND_NAMES": ("jarvis", "personal-jarvis"),+ "LEGACY_CONTROL_CLI_COMMAND_NAMES": ("jarvisctl",),+ "CLI_COMMAND_NAMES": ("dodaios", "dodaiosctl", "jarvis", "personal-jarvis", "jarvisctl"),"SHELL_PROFILE_MARKER": "# Personal Jarvis: command-line tools (jarvis, personal-jarvis)","FISH_CONF_FILE_NAME": "personal-jarvis.fish","KEYRING_SERVICE_NAME": "personal-jarvis",@@ -89,6 +90,11 @@ def test_display_name_is_separate_from_persistent_identity() -> None:for name in _CURRENT_IDENTITY:if "REPO" in name or "RELEASES" in name:continue # the repository is itself called Dodaios/Dodaios+ if "CLI_COMMAND" in name:+ # The commands are spelled like the product by choice, as literals+ # of their own: the next test shows they do not follow the display+ # name, and the earlier command names stay beside them.+ continueassert display not in str(getattr(branding, name)).casefold(), namediff --git a/tests/unit/core/test_identity_single_source.py b/tests/unit/core/test_identity_single_source.pyindex 9ffd441b24..0b03a3c5dc 100644--- a/tests/unit/core/test_identity_single_source.py+++ b/tests/unit/core/test_identity_single_source.py@@ -103,6 +103,10 @@ def test_the_pyinstaller_spec_restates_the_bundle_names() -> None:== branding.WINDOWS_BRANDED_LAUNCHER_FILE_NAME)assert _module_constant("jarvis.spec", "CLI_EXE_NAME") == branding.CLI_COMMAND_NAME+ # The frozen build keeps the command's first earlier name beside the new one.+ legacy_exes = _module_constant("jarvis.spec", "LEGACY_CLI_EXE_NAMES")+ assert legacy_exes == branding.LEGACY_CLI_COMMAND_NAMES[:1]+ assert "*legacy_cli_exes," in _read("jarvis.spec")assert _module_constant("jarvis.spec", "MACOS_APP_NAME") == branding.MACOS_APP_DIR_NAMEassert (_module_constant("jarvis.spec", "MACOS_BUNDLE_IDENTIFIER") == branding.MACOS_DMG_BUNDLE_ID@@ -208,6 +212,7 @@ def test_the_shell_uninstaller_restates_the_macos_identifiers(("AppName", branding.LAUNCHER_ENTRY_NAME),("GuiExeName", branding.WINDOWS_BRANDED_LAUNCHER_FILE_NAME),("CliExeName", f"{branding.CLI_COMMAND_NAME}.exe"),+ ("LegacyCliExeName", f"{branding.LEGACY_CLI_COMMAND_NAMES[0]}.exe"),("UserDataDirDisplay", rf"%LOCALAPPDATA%\{branding.WINDOWS_USER_DATA_DIR_NAME}"),],)@@ -219,9 +224,16 @@ def test_the_windows_installer_script_restates_the_names(definition: str, expectdef test_the_packaging_scripts_restate_the_names() -> None:windows = _read("packaging/windows/build.ps1")- assert (- f'@("{branding.WINDOWS_BRANDED_LAUNCHER_FILE_NAME}", "{branding.CLI_COMMAND_NAME}.exe")'- in windows+ frozen_cli_names = (branding.CLI_COMMAND_NAME, branding.LEGACY_CLI_COMMAND_NAMES[0])+ required = (+ branding.WINDOWS_BRANDED_LAUNCHER_FILE_NAME,+ *(f"{name}.exe" for name in frozen_cli_names),+ )+ assert "@(" + ", ".join(f'"{name}"' for name in required) + ")" in windows+ quoted = " ".join(f'"{name}"' for name in frozen_cli_names)+ assert f"\nCLI_EXE_NAMES=({quoted})\n" in _read("packaging/linux/build.sh")+ assert f"for cli_name in {' '.join(frozen_cli_names)}; do" in _read(+ "packaging/macos/build.sh")assert (f'\nDESKTOP_FILE_NAME="{branding.LINUX_DESKTOP_ENTRY_FILE_NAME}"\n'@@ -235,7 +247,19 @@ def test_the_project_metadata_restates_the_distribution_and_its_commands() -> Noassert project["project"]["name"] == branding.DISTRIBUTION_NAMEscripts = project["project"]["scripts"]assert set(branding.CLI_COMMAND_NAMES) <= set(scripts)- assert scripts[branding.CLI_COMMAND_NAME] == scripts[branding.CLI_COMMAND_ALIAS]+ # Every earlier name is the same program as the command it used to be.+ for legacy in branding.LEGACY_CLI_COMMAND_NAMES:+ assert scripts[legacy] == scripts[branding.CLI_COMMAND_NAME], legacy+ for legacy in branding.LEGACY_CONTROL_CLI_COMMAND_NAMES:+ assert scripts[legacy] == scripts[branding.CONTROL_CLI_COMMAND_NAME], legacy+ assert scripts[branding.CLI_COMMAND_NAME] != scripts[branding.CONTROL_CLI_COMMAND_NAME]+ # No further alias of either command is registered behind branding's back.+ # The one exception is the short control alias, which is a console script+ # but deliberately not one of the commands the installer puts on PATH.+ commands = {scripts[branding.CLI_COMMAND_NAME], scripts[branding.CONTROL_CLI_COMMAND_NAME]}+ aliases = {name for name, target in scripts.items() if target in commands}+ assert aliases - set(branding.CLI_COMMAND_NAMES) == {"jctl"}+ assert scripts["jctl"] == scripts[branding.CONTROL_CLI_COMMAND_NAME]data_files = project["tool"]["setuptools"]["data-files"]assert data_files, "the wheel ships its reader documents as data files"for target in data_files:@@ -455,10 +479,11 @@ def _current_names() -> list[IdentityName]:# The names the product is planned to move to. Data only: nothing sets them# yet. When they become the branding values, today's values become LEGACY_*-# and the first test below covers them without this table.+# and the first test below covers them without this table. The commands+# ``dodaios`` and ``dodaiosctl`` already made that move: they are console+# scripts now, and the first test sees them among the current names._PLANNED_NAMES: tuple[IdentityName, ...] = (IdentityName("executable", "gui-exe", "planned", "DodaiosApp"),- IdentityName("executable", "cli:dodaios", "planned", "dodaios"),IdentityName("home-dir", "install", "planned", ".dodaios"),IdentityName("home-dir", "data", "planned", ".dodaios-data"),IdentityName("localappdata-dir", "data", "planned", "Dodaios"),@@ -474,10 +499,27 @@ def test_no_two_current_or_legacy_names_collide() -> None:# branded launcher and the hyphenated command differ by more than case.values = {(name.role, name.value) for name in names}assert ("gui-exe", _executable_stem(branding.WINDOWS_BRANDED_LAUNCHER_FILE_NAME)) in values- assert (f"cli:{branding.CLI_COMMAND_ALIAS}", branding.CLI_COMMAND_ALIAS) in values+ # Every command the install puts on PATH is in the table, the new names+ # and the earlier ones alike.+ for command in branding.CLI_COMMAND_NAMES:+ assert (f"cli:{command}", command) in valuesassert _collisions(names) == []+def test_the_planned_launcher_name_stays_clear_of_the_commands_that_exist() -> None:+ # The planned windowed executable shares a folder with the console+ # scripts. The commands are real now, so this is the pair that would+ # collide if the launcher were ever named like the command.+ planned_gui = [name for name in _PLANNED_NAMES if name.role == "gui-exe"]+ assert planned_gui, "the planned launcher name left the table"+ commands = {name.casefold() for name in _console_scripts()}+ for name in planned_gui:+ assert name.value.casefold() not in commands+ # And the check has teeth: a launcher spelled like the command is caught.+ clash = IdentityName("executable", "gui-exe", "planned", branding.CLI_COMMAND_NAME.title())+ assert len(_collisions([*_current_names(), clash])) == 1++def test_the_planned_names_collide_with_nothing_an_installation_carries() -> None:assert _collisions([*_current_names(), *_PLANNED_NAMES]) == []diff --git a/tests/unit/packaging/test_spec_console_executables.py b/tests/unit/packaging/test_spec_console_executables.pynew file mode 100644index 0000000000..2a5c26f153--- /dev/null+++ b/tests/unit/packaging/test_spec_console_executables.py@@ -0,0 +1,140 @@+"""``jarvis.spec`` builds the console CLI under its name and its earlier name.++The frozen build ships three executables in one folder: the windowed launcher,+the console command (``dodaios``) and the same console program once more as+``jarvis``, which scripts and shell history still call. This runs the real+spec with stand-in PyInstaller names and checks the targets it declares, for+every OS the spec is built on.+"""++from __future__ import annotations++import shutil+import sys+import types+from pathlib import Path++import pytest++from jarvis.core import branding++REPO_ROOT = Path(__file__).resolve().parents[3]+SPEC_PATH = REPO_ROOT / "jarvis.spec"+++def _exec_spec(+ monkeypatch: pytest.MonkeyPatch, root: Path, platform: str+) -> list[tuple[str, tuple[object, ...], dict[str, object]]]:+ """Run the real spec for ``platform``; return every build call in order."""+ calls: list[tuple[str, tuple[object, ...], dict[str, object]]] = []++ def recorder(name: str):+ def _call(*args: object, **kwargs: object) -> types.SimpleNamespace:+ calls.append((name, args, kwargs))+ return types.SimpleNamespace(+ target=name,+ name=kwargs.get("name"),+ pure=[],+ zipped_data=[],+ scripts=[],+ binaries=[],+ zipfiles=[],+ datas=[],+ )++ return _call++ hooks = types.ModuleType("PyInstaller.utils.hooks")+ hooks.collect_data_files = lambda *a, **k: [] # type: ignore[attr-defined]+ hooks.collect_submodules = lambda *a, **k: [] # type: ignore[attr-defined]+ hooks.copy_metadata = lambda *a, **k: [] # type: ignore[attr-defined]+ # The Windows version resource: any structure the spec asks for is recorded.+ versioninfo = types.ModuleType("PyInstaller.utils.win32.versioninfo")+ versioninfo.__getattr__ = lambda kind: ( # type: ignore[method-assign]+ lambda *args, **kwargs: types.SimpleNamespace(kind=kind, args=args, kwargs=kwargs)+ )+ for name, module in (+ ("PyInstaller", types.ModuleType("PyInstaller")),+ ("PyInstaller.utils", types.ModuleType("PyInstaller.utils")),+ ("PyInstaller.utils.hooks", hooks),+ ("PyInstaller.utils.win32", types.ModuleType("PyInstaller.utils.win32")),+ ("PyInstaller.utils.win32.versioninfo", versioninfo),+ # The spec probes these optional packages with __import__; stand-ins keep+ # a real (possibly platform-specific) import from running under a fake OS.+ ("webview", types.ModuleType("webview")),+ ("pystray", types.ModuleType("pystray")),+ ("PIL", types.ModuleType("PIL")),+ ):+ monkeypatch.setitem(sys.modules, name, module)+ monkeypatch.setattr(sys, "platform", platform)++ namespace: dict[str, object] = {"SPECPATH": str(root), "__file__": str(root / "jarvis.spec")}+ for builtin in ("Analysis", "PYZ", "EXE", "COLLECT", "BUNDLE"):+ namespace[builtin] = recorder(builtin)+ source = (root / "jarvis.spec").read_text(encoding="utf-8")+ exec(compile(source, str(root / "jarvis.spec"), "exec"), namespace) # noqa: S102+ return calls+++def spec_root(tmp_path: Path) -> Path:+ """A minimal checkout: the real spec and the files it reads by path."""+ root = tmp_path / "checkout"+ (root / "jarvis" / "core").mkdir(parents=True)+ (root / "jarvis" / "__init__.py").write_text('__version__ = "9.9.9"\n', encoding="utf-8")+ shutil.copy2(+ REPO_ROOT / "jarvis" / "core" / "macos_privacy_strings.py",+ root / "jarvis" / "core" / "macos_privacy_strings.py",+ )+ shutil.copy2(SPEC_PATH, root / "jarvis.spec")+ # The notice collector walks every installed distribution, which has+ # nothing to do with the executables under test: a stand-in with the same+ # entry point keeps this file about the build targets (and fast).+ helper_dir = root / "scripts" / "packaging"+ helper_dir.mkdir(parents=True)+ (helper_dir / "native_notices.py").write_text(+ "def collect_native_notices(*_args, **_kwargs):\n return []\n", encoding="utf-8"+ )+ return root++[email protected]("platform", ["win32", "darwin", "linux"])+def test_the_freeze_ships_the_console_program_under_both_names(+ monkeypatch: pytest.MonkeyPatch, spec_root: Path, platform: str+) -> None:+ calls = _exec_spec(monkeypatch, spec_root, platform)++ executables = [kwargs for name, _args, kwargs in calls if name == "EXE"]+ built = [(kwargs["name"], kwargs["console"]) for kwargs in executables]+ gui = Path(branding.WINDOWS_BRANDED_LAUNCHER_FILE_NAME).stem+ assert built == [+ (gui, False),+ (branding.CLI_COMMAND_NAME, True),+ (branding.LEGACY_CLI_COMMAND_NAMES[0], True),+ ]+ # One folder holds all of them: no two names may differ by case alone.+ folded = [str(name).casefold() for name, _console in built]+ assert len(set(folded)) == len(folded)++ # Every executable is collected into the one bundle, the launcher first.+ collect = next(args for name, args, _kwargs in calls if name == "COLLECT")+ collected = [item.name for item in collect if getattr(item, "target", None) == "EXE"]+ assert collected == [name for name, _console in built]++ # The console builds differ in nothing but their name.+ new, legacy = executables[1], executables[2]+ assert {k: v for k, v in new.items() if k != "name"} == {+ k: v for k, v in legacy.items() if k != "name"+ }+++def test_the_macos_bundle_still_launches_the_windowed_executable(+ monkeypatch: pytest.MonkeyPatch, spec_root: Path+) -> None:+ calls = _exec_spec(monkeypatch, spec_root, "darwin")++ bundle = next(kwargs for name, _args, kwargs in calls if name == "BUNDLE")+ assert bundle["info_plist"]["CFBundleExecutable"] == branding.MACOS_EXECUTABLE_NAME+ # The last collected executable is a console one; the bundle must say it+ # is a windowed app all the same.+ assert bundle["info_plist"]["LSBackgroundOnly"] is Falsediff --git a/tests/unit/setup/test_cli_path.py b/tests/unit/setup/test_cli_path.pyindex ab477eb60e..852e83f9d5 100644--- a/tests/unit/setup/test_cli_path.py+++ b/tests/unit/setup/test_cli_path.py@@ -245,3 +245,114 @@ def test_no_command_collides_with_the_branded_windows_launcher():branded = Path(current_instance().windows_branded_launcher_file_name).stem.casefold()assert branded not in {command.casefold() for command in COMMAND_NAMES}+++# ------------------------------------------- installs made before a command existed+#: What an earlier version wrote into a profile, byte for byte. The marker line+#: names the commands of that time; it is how the block is found again.+_EARLIER_COMMANDS = ("jarvis", "personal-jarvis", "jarvisctl")+_EARLIER_POSIX_BLOCK = (+ "\n# Personal Jarvis: command-line tools (jarvis, personal-jarvis)\n"+ 'case ":$PATH:" in *":$HOME/.local/bin:"*) ;; '+ '*) export PATH="$HOME/.local/bin:$PATH" ;; esac\n'+)+_EARLIER_FISH_BLOCK = (+ "\n# Personal Jarvis: command-line tools (jarvis, personal-jarvis)\n"+ "contains -- $HOME/.local/bin $PATH; or set -gx PATH $HOME/.local/bin $PATH\n"+)+++def test_the_new_commands_are_on_the_list_beside_the_earlier_ones():+ assert COMMAND_NAMES[:2] == ("dodaios", "dodaiosctl")+ assert set(_EARLIER_COMMANDS) < set(COMMAND_NAMES)+++def test_the_profile_marker_is_the_line_existing_profiles_carry():+ # A changed marker would not be found in a profile an earlier install+ # wrote: the next install would add a second block, and an uninstall would+ # leave the first one behind.+ assert _EARLIER_POSIX_BLOCK.splitlines()[1] == PROFILE_MARKER+ assert _EARLIER_FISH_BLOCK.splitlines()[1] == PROFILE_MARKER+++ ("shell", "platform_name", "block"),+ [+ ("/bin/zsh", "darwin", _EARLIER_POSIX_BLOCK),+ ("/bin/bash", "linux", _EARLIER_POSIX_BLOCK),+ ("/usr/bin/fish", "linux", _EARLIER_FISH_BLOCK),+ ],+)+def test_an_earlier_install_gains_the_new_commands_and_keeps_one_profile_block(+ tmp_path, shell, platform_name, block, symlinks_available+):+ root = _posix_root(tmp_path)+ home = tmp_path / "home"+ bin_dir = home / ".local" / "bin"+ bin_dir.mkdir(parents=True)+ for command in _EARLIER_COMMANDS:+ (bin_dir / command).symlink_to(root / ".venv" / "bin" / command)+ profile = profile_file(home, login_shell=shell, platform_name=platform_name)+ profile.parent.mkdir(parents=True, exist_ok=True)+ earlier_profile = "export EDITOR=vim\n" + block+ profile.write_text(earlier_profile, encoding="utf-8", newline="\n")++ for _run in range(2): # the update, then any later installer run+ report = install_commands(+ root, platform_name=platform_name, home=home, environ={"PATH": "/usr/bin"},+ login_shell=shell, which=_never_found,+ )+ assert report.errors == [] and report.kept == [] and report.missing == []+ assert report.linked == list(COMMAND_NAMES)+ # The block was there already: nothing is written, nothing duplicated.+ assert report.path_updated is None+ assert profile.read_text(encoding="utf-8") == earlier_profile+ for command in COMMAND_NAMES:+ assert (bin_dir / command).resolve() == (root / ".venv" / "bin" / command).resolve()++ removed = remove_commands(root, platform_name=platform_name, home=home)++ assert not any((bin_dir / command).is_symlink() for command in COMMAND_NAMES)+ assert profile.read_text(encoding="utf-8") == "export EDITOR=vim\n"+ assert any("PATH line" in line for line in removed)+++def test_an_earlier_windows_install_gains_the_new_launchers_without_touching_path(tmp_path):+ root = _windows_root(tmp_path)+ bin_dir = root / "bin"+ bin_dir.mkdir()+ for command in _EARLIER_COMMANDS:+ (bin_dir / f"{command}.exe").write_bytes(b"launcher:" + command.encode())+ store = FakeUserPath(rf"C:\Tools;{bin_dir}", kind=2)++ report = install_commands(+ root, platform_name="win32", environ={"PATH": rf"C:\Windows;{bin_dir}"}, store=store,+ which=_never_found,+ )++ assert report.linked == list(COMMAND_NAMES)+ for command in COMMAND_NAMES:+ assert (bin_dir / f"{command}.exe").read_bytes() == b"launcher:" + command.encode()+ # The folder was on Path already: one entry, not two.+ assert store.writes == 0 and report.path_updated is None+ assert report.needs_new_terminal is False+++def test_a_headless_container_gets_every_command_and_a_profile_block(+ tmp_path, symlinks_available+):+ # python:3.11-slim as root: no SHELL, no display, ~/.local/bin not on PATH.+ root = _posix_root(tmp_path)+ home = tmp_path / "root"++ report = install_commands(+ root, platform_name="linux", home=home,+ environ={"PATH": "/usr/local/bin:/usr/bin:/bin", "HOME": str(home)}, which=_never_found,+ )++ assert report.errors == [] and report.linked == list(COMMAND_NAMES)+ for command in COMMAND_NAMES:+ assert (home / ".local" / "bin" / command).is_symlink()+ assert report.path_updated == str(home / ".profile")+ assert (home / ".profile").read_text(encoding="utf-8").count(PROFILE_MARKER) == 1+ assert report.needs_new_terminal is True