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).
21 lines
576 B
TypeScript
21 lines
576 B
TypeScript
import { defaultConfig } from '@hanzogui/config/v5'
|
|
import { createGui } from '@hanzo/gui'
|
|
|
|
// One GUI config for the whole app (DRY). Spread the canonical @hanzo/gui v5
|
|
// default config and hand it to createGui — same pattern as the Hanzo console
|
|
// (hanzoai/console/gui.config.ts). No font override here; the default system
|
|
// stack renders correctly inside the mobile webview.
|
|
export const config = createGui({
|
|
...defaultConfig,
|
|
})
|
|
|
|
export default config
|
|
|
|
export type Conf = typeof config
|
|
|
|
declare module '@hanzo/gui' {
|
|
interface TypeOverride {
|
|
conf: Conf
|
|
}
|
|
}
|