mirror of
https://github.com/hanzoai/chat.git
synced 2026-09-30 20:51:17 +00:00
Self-contained mobile/ app (not in any workspace): - Tauri v2 shell (productName "Hanzo AI", id ai.hanzo.chat) with fs + http plugins, scoped capabilities (fs: ~/.codex ~/.claude ~/.hanzo; http: chatgpt.com, api.anthropic.com, api.hanzo.ai, claude.ai, hanzo.chat). - React 19 + Vite + @hanzo/gui (createGui + defaultConfig from @hanzogui/config/v5). Three state-nav screens: Chat, Sessions, Usage. - Chat -> POST /api/agents/v1/chat/completions (OpenAI-compatible); Sessions -> GET /api/convos; both Bearer-auth. Usage via @hanzo/usage (createTauriHost + useUsage), connect empty-state outside Tauri. - Bearer token via VITE_CHAT_TOKEN or paste screen (localStorage); IAM TODO. - Rust engine/node feature flags OFF by default; cfg-gated engine_status + device_register stubs pointing at hanzoai/engine + hanzoai/node. vite build green; cargo check green (default + engine,node).
44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "Core capability: usage-config filesystem reads + chat/provider HTTP.",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
{
|
|
"identifier": "fs:allow-read-text-file",
|
|
"allow": [
|
|
{ "path": "$HOME/.codex/**" },
|
|
{ "path": "$HOME/.claude/**" },
|
|
{ "path": "$HOME/.hanzo/**" }
|
|
]
|
|
},
|
|
{
|
|
"identifier": "fs:allow-read-dir",
|
|
"allow": [
|
|
{ "path": "$HOME/.codex/**" },
|
|
{ "path": "$HOME/.claude/**" },
|
|
{ "path": "$HOME/.hanzo/**" }
|
|
]
|
|
},
|
|
{
|
|
"identifier": "fs:allow-write-text-file",
|
|
"allow": [{ "path": "$HOME/.hanzo/**" }]
|
|
},
|
|
{
|
|
"identifier": "fs:allow-mkdir",
|
|
"allow": [{ "path": "$HOME/.hanzo/**" }]
|
|
},
|
|
{
|
|
"identifier": "http:default",
|
|
"allow": [
|
|
{ "url": "https://chatgpt.com/*" },
|
|
{ "url": "https://api.anthropic.com/*" },
|
|
{ "url": "https://api.hanzo.ai/*" },
|
|
{ "url": "https://claude.ai/*" },
|
|
{ "url": "https://hanzo.chat/*" }
|
|
]
|
|
}
|
|
]
|
|
}
|