Skip to content

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

feat(marketplace): install an entry by just asking for it

Harald77c5ed9a3c1a
diff --git a/docs/commands-reference.md b/docs/commands-reference.md
index 9ddd72299e..e79d0505f0 100644
--- a/docs/commands-reference.md
+++ b/docs/commands-reference.md
@@ -231,6 +231,26 @@ Return the effective live Brain tool surface, including native, connected CLI, M
- **Desktop UI section:** `settings`
- **Voice example (EN):** "list the connected tools mcps and clis"
+## `marketplace-browse` — Browse the marketplace
+
+List everything the community marketplace publishes — skills, plugins and wallpapers — with the exact name of each entry and whether it is already installed. Use this to find the name before installing, and to answer 'what is there to install'.
+
+- **Endpoint:** `GET /api/marketplace/community`
+- **Arguments:** none
+- **Requires confirmation:** no
+- **Desktop UI section:** `plugins`
+- **Voice example (EN):** "what is in the marketplace"
+
+## `marketplace-install` — Install from the marketplace
+
+Install ONE published marketplace entry by its exact name. The kind is resolved by the app, so the same command installs a skill, a plugin or a wallpaper. What the user gets differs and the answer must say so: a skill is usable right away, a wallpaper lands in the wallpaper picker, a plugin only lands on the plugin list and stays powerless until the user connects their account. Look the name up with marketplace-browse first rather than guessing it; report the result the tool returns.
+
+- **Endpoint:** `POST /api/marketplace/community/install/{item_id}`
+- **Arguments:** `item_id` (string; required)
+- **Requires confirmation:** yes
+- **Desktop UI section:** `plugins`
+- **Voice example (EN):** "install that wallpaper"
+
## `dictation-start` — Start dictation
Start dictation: speak, and the transcribed text is inserted into whatever text field currently has focus. Stops with dictation-stop or the dictation shortcut.
diff --git a/docs/jarvis-cli-reference.md b/docs/jarvis-cli-reference.md
index 5d896cdc9b..dd02ab49bc 100644
--- a/docs/jarvis-cli-reference.md
+++ b/docs/jarvis-cli-reference.md
@@ -112,7 +112,7 @@ _Generated from the curated command tree by `scripts/ci/gen_cli_reference.py`
- `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 or plugin — and report the result.
+- `jarvis marketplace install <item_id> --yes --dry-run` — Install a marketplace entry by name — skill, plugin or wallpaper — and report it.
- `jarvis marketplace list` — List marketplace plugins + their connection status.
## mcps
diff --git a/docs/jarvis-cli.md b/docs/jarvis-cli.md
index aea6c404d3..d4471c4c5a 100644
--- a/docs/jarvis-cli.md
+++ b/docs/jarvis-cli.md
@@ -88,8 +88,9 @@ jarvis missions list # rich table, for humans
## Installing from the marketplace
-A marketplace page prints one line to copy. It works for both kinds of entry —
-skills and plugins — and you never have to know which one you are looking at:
+A marketplace page prints one line to copy. It works for every kind of entry —
+skills, plugins and wallpapers — and you never have to know which one you are
+looking at:
```bash
jarvis marketplace install three-bullet-brief
@@ -97,12 +98,19 @@ jarvis marketplace browse # everything on offer + what you
```
At a terminal the command first shows what the entry is and where it comes from,
-asks once, and then says plainly what happened — a skill that validated is usable
-immediately, while a plugin lands on your list but stays powerless until you
-connect your account. **Exit code 1 means "not usable"**: an unknown name, a
-declined prompt, or a skill whose file failed validation. Piped or with `--json`
-it skips the prose and the prompt and prints the API payload
-(`POST /api/marketplace/community/install/<name>`).
+asks once, and then says plainly what happened. What "installed" is worth differs
+per kind, and the answer says which one you got: a skill that validated is usable
+immediately, a wallpaper is in your picker straight away, and a plugin lands on
+your list but stays powerless until you connect your account. **Exit code 1 means
+"not usable"**: an unknown name, a declined prompt, or a skill whose file failed
+validation. Piped or with `--json` it skips the prose and the prompt and prints
+the API payload (`POST /api/marketplace/community/install/<name>`).
+
+The same install is reachable by just asking for it — "install the wallpaper
+rain-antenna-city" — because both the browse and the install are Command-Registry
+entries (`marketplace-browse`, `marketplace-install`), so the assistant can look
+the name up and then install it. Installing pulls somebody else's published
+content onto your machine, so that path asks you to confirm out loud first.
## Safety model
diff --git a/jarvis/cli_ctl/commands/marketplace.py b/jarvis/cli_ctl/commands/marketplace.py
index f8a8c45db4..2b29b9d303 100644
--- a/jarvis/cli_ctl/commands/marketplace.py
+++ b/jarvis/cli_ctl/commands/marketplace.py
@@ -222,7 +222,7 @@ def install(
yes: bool = options.yes_opt(),
dry_run: bool = options.dry_opt(),
) -> None:
- """Install a marketplace entry by name — skill or plugin — and report the result.
+ """Install a marketplace entry by name — skill, plugin or wallpaper — and report it.
At a terminal this shows what the entry is and asks once before installing,
then states plainly whether the thing is usable now or still needs a step.
diff --git a/jarvis/commands/registry.py b/jarvis/commands/registry.py
index 59c79cc1d6..32f1848e57 100644
--- a/jarvis/commands/registry.py
+++ b/jarvis/commands/registry.py
@@ -685,6 +685,85 @@ def _build_registry() -> tuple[AppCommand, ...]:
"es": ("lista las herramientas mcps y clis conectadas",), # i18n-allow: input vocab
},
),
+ # ------------------------------------------------------ marketplace
+ AppCommand(
+ id="marketplace-browse",
+ title="Browse the marketplace",
+ description=(
+ "List everything the community marketplace publishes — skills, "
+ "plugins and wallpapers — with the exact name of each entry and "
+ "whether it is already installed. Use this to find the name "
+ "before installing, and to answer 'what is there to install'."
+ ),
+ method="GET",
+ path="/api/marketplace/community",
+ params={"type": "object", "properties": {}},
+ ui_section="plugins",
+ voice_aliases={
+ "de": ( # i18n-allow: input vocab
+ "was gibt es im marktplatz",
+ "welche wallpaper kann ich installieren",
+ ),
+ "en": (
+ "what is in the marketplace",
+ "which wallpapers can i install",
+ ),
+ "es": ( # i18n-allow: input vocab
+ "qué hay en el mercado",
+ "qué fondos de pantalla puedo instalar",
+ ),
+ },
+ ),
+ AppCommand(
+ id="marketplace-install",
+ title="Install from the marketplace",
+ description=(
+ "Install ONE published marketplace entry by its exact name. The "
+ "kind is resolved by the app, so the same command installs a "
+ "skill, a plugin or a wallpaper. What the user gets differs and "
+ "the answer must say so: a skill is usable right away, a "
+ "wallpaper lands in the wallpaper picker, a plugin only lands on "
+ "the plugin list and stays powerless until the user connects "
+ "their account. Look the name up with marketplace-browse first "
+ "rather than guessing it; report the result the tool returns."
+ ),
+ method="POST",
+ path="/api/marketplace/community/install/{item_id}",
+ # Installing pulls somebody else's published content onto this
+ # machine — a plugin brings an outside MCP server with it. That is
+ # never something a spoken sentence should do unconfirmed, so the
+ # tier is `ask` even though the CLI path heuristic sees nothing
+ # destructive here.
+ dangerous=True,
+ params={
+ "type": "object",
+ "properties": {
+ "item_id": _str_param(
+ "Exact published name of the entry to install, as shown "
+ "by marketplace-browse (e.g. three-bullet-brief).",
+ min_length=1,
+ max_length=128,
+ ),
+ },
+ "required": ["item_id"],
+ },
+ path_params=("item_id",),
+ ui_section="plugins",
+ voice_aliases={
+ "de": ( # i18n-allow: input vocab
+ "installier das wallpaper",
+ "installier das plugin aus dem marktplatz",
+ ),
+ "en": (
+ "install that wallpaper",
+ "install that plugin from the marketplace",
+ ),
+ "es": ( # i18n-allow: input vocab
+ "instala ese fondo de pantalla",
+ "instala ese complemento del mercado",
+ ),
+ },
+ ),
# -------------------------------------------------------- dictation
AppCommand(
id="dictation-start",
diff --git a/jarvis/plugins/tool/app_command.py b/jarvis/plugins/tool/app_command.py
index dc86f54e3c..cbd5295254 100644
--- a/jarvis/plugins/tool/app_command.py
+++ b/jarvis/plugins/tool/app_command.py
@@ -125,10 +125,22 @@ _SNAPSHOT_KEYS = frozenset({"state"})
def _without_snapshots(data: Any) -> Any:
- """The server's response minus any full-state snapshot it echoed back."""
+ """The server's response minus any full-state snapshot it echoed back.
+
+ Only a nested body is ever a snapshot. ``state`` is also what several
+ routes call their one-word verdict — a marketplace install answers
+ ``state: "installed"`` / ``"not_connected"`` — and dropping THAT took the
+ result out of the very payload the model is told to report from. Trimming
+ on the value's shape keeps the 25 000-character workspace dumps out while
+ letting a plain word through.
+ """
if not isinstance(data, dict):
return data
- trimmed = {key: value for key, value in data.items() if key not in _SNAPSHOT_KEYS}
+ trimmed = {
+ key: value
+ for key, value in data.items()
+ if key not in _SNAPSHOT_KEYS or not isinstance(value, (dict, list))
+ }
if trimmed.keys() <= {"ok"}:
# The snapshot WAS the answer; trimming it would return nothing at all.
return data
diff --git a/tests/unit/plugins/tool/test_app_command.py b/tests/unit/plugins/tool/test_app_command.py
index 44957dde3c..2f0b1cb736 100644
--- a/tests/unit/plugins/tool/test_app_command.py
+++ b/tests/unit/plugins/tool/test_app_command.py
@@ -51,6 +51,15 @@ def _fake_app(calls: dict) -> FastAPI:
calls["terminal_prompt"] = {"name": name, **body}
return {"ok": True, "terminal": name, "submitted": True}
+ @app.post("/api/marketplace/community/install/{item_id}")
+ async def marketplace_install(item_id: str) -> dict:
+ calls["marketplace_install"] = item_id
+ return {
+ "ok": True, "kind": "wallpaper", "id": item_id,
+ "title": "Rain Antenna City", "state": "installed",
+ "ready": True, "next_action": "none",
+ }
+
return app
@@ -364,3 +373,54 @@ def test_a_response_that_is_only_a_snapshot_is_still_returned() -> None:
assert _without_snapshots(payload) == payload
assert _without_snapshots("plain text") == "plain text"
+
+
+def test_a_one_word_state_is_not_mistaken_for_a_snapshot() -> None:
+ """`state` is also what several routes call their verdict.
+
+ A marketplace install answers ``state: "installed"`` (or "not_connected"),
+ and trimming that took the outcome out of the very payload the model is
+ told to report from.
+ """
+ from jarvis.plugins.tool.app_command import _without_snapshots
+
+ trimmed = _without_snapshots({"ok": True, "kind": "wallpaper", "state": "installed"})
+
+ assert trimmed["state"] == "installed"
+
+
+# --------------------------------------------------------------------------- #
+# Marketplace: installing by just asking for it #
+# --------------------------------------------------------------------------- #
+
+
+def test_installing_from_the_marketplace_needs_a_spoken_confirmation() -> None:
+ """Pulling somebody else's published content onto the machine is `ask`.
+
+ A plugin brings an outside MCP server with it, so this must never run off
+ a half-heard sentence — even though the CLI path heuristic sees nothing
+ destructive in the URL.
+ """
+ tools = _tools()
+
+ assert tools["marketplace-install"].risk_tier == "ask"
+ assert tools["marketplace-browse"].risk_tier == "monitor"
+
+
+async def test_installing_a_wallpaper_by_name_reports_what_landed() -> None:
+ """The prompt path is the CLI path: same route, same honest answer."""
+ calls: dict = {}
+ tools = _tools(calls)
+
+ result = await tools["marketplace-install"].execute(
+ {"item_id": "rain-antenna-city"}, SimpleNamespace()
+ )
+
+ assert result.success is True
+ assert calls["marketplace_install"] == "rain-antenna-city"
+ response = result.output["response"]
+ assert response["kind"] == "wallpaper"
+ # What the user asks next is "did it work" — the answer must carry the
+ # verdict, not just an `ok: true` the model would have to interpret.
+ assert response["state"] == "installed"
+ assert response["ready"] is True