Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(auth): preserve remote skill reads

Maxa45df9447b9b
diff --git a/tests/test_instance_authorization.py b/tests/test_instance_authorization.py
index 2b2dc63d5..b78210f9c 100644
--- a/tests/test_instance_authorization.py
+++ b/tests/test_instance_authorization.py
@@ -100,7 +100,7 @@ def test_http_policy_defaults_unknown_api_to_owner() -> None:
assert required_instance_role("GET", "/api/projects/proj-1") == "viewer"
assert required_instance_role("GET", "/api/projects/proj-1/agents-md") == "owner"
assert required_instance_role("GET", "/api/agents") == "editor"
- assert required_instance_role("GET", "/api/skills") == "owner"
+ assert required_instance_role("GET", "/api/skills") == "editor"
assert required_instance_role("GET", "/api/vault/secrets") == "editor"
assert required_instance_role("GET", "/api/vault/tags") == "editor"
assert required_instance_role("POST", "/api/vault/requests/access") == "editor"
diff --git a/vibe/authorization.py b/vibe/authorization.py
index 13c67ee2f..8d17d7525 100644
--- a/vibe/authorization.py
+++ b/vibe/authorization.py
@@ -320,6 +320,7 @@ _EDITOR_HTTP_RULES = tuple(
for method, pattern in (
("GET", r"^/api/agents$"),
("GET", r"^/api/agent-backends$"),
+ ("GET", r"^/api/skills$"),
("GET", r"^/api/vault/(?:secrets|tags)$"),
("GET", r"^/api/cloud/token$"),
("GET", r"^/api/asr/status$"),