feat: ClawPal v0.1 — Tauri desktop GUI for OpenClaw
4-page layout (Home, Recipes, Settings, Doctor) with sidebar nav
and integrated Chat panel powered by OpenClaw agent (--local).
- Home: status, agents overview, recommended recipes, recent activity
- Recipes: browse, preview diff, apply with params
- Settings: model profiles CRUD, chat model selection, provider catalog
- Doctor: diagnostics with auto-fix
- Chat: OpenClaw agent integration with session persistence,
agent selector, read-only advisory context injection
- Progressive data loading to avoid UI blocking
- API key resolution from OpenClaw agent auth-profiles
- Model catalog from openclaw CLI with cache
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:16:38 +09:00
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
|
import react from "@vitejs/plugin-react";
|
2026-02-17 01:28:04 +09:00
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
|
|
import path from "path";
|
feat: ClawPal v0.1 — Tauri desktop GUI for OpenClaw
4-page layout (Home, Recipes, Settings, Doctor) with sidebar nav
and integrated Chat panel powered by OpenClaw agent (--local).
- Home: status, agents overview, recommended recipes, recent activity
- Recipes: browse, preview diff, apply with params
- Settings: model profiles CRUD, chat model selection, provider catalog
- Doctor: diagnostics with auto-fix
- Chat: OpenClaw agent integration with session persistence,
agent selector, read-only advisory context injection
- Progressive data loading to avoid UI blocking
- API key resolution from OpenClaw agent auth-profiles
- Model catalog from openclaw CLI with cache
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:16:38 +09:00
|
|
|
|
|
2026-02-20 20:07:14 +08:00
|
|
|
|
// 云服务器公网 IP:设置环境变量 PUBLIC_HOST=139.196.48.8 可在控制台显示公网访问地址
|
|
|
|
|
|
const publicHost = process.env.PUBLIC_HOST;
|
|
|
|
|
|
const port = 1420;
|
|
|
|
|
|
|
feat: ClawPal v0.1 — Tauri desktop GUI for OpenClaw
4-page layout (Home, Recipes, Settings, Doctor) with sidebar nav
and integrated Chat panel powered by OpenClaw agent (--local).
- Home: status, agents overview, recommended recipes, recent activity
- Recipes: browse, preview diff, apply with params
- Settings: model profiles CRUD, chat model selection, provider catalog
- Doctor: diagnostics with auto-fix
- Chat: OpenClaw agent integration with session persistence,
agent selector, read-only advisory context injection
- Progressive data loading to avoid UI blocking
- API key resolution from OpenClaw agent auth-profiles
- Model catalog from openclaw CLI with cache
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:16:38 +09:00
|
|
|
|
export default defineConfig({
|
2026-02-20 20:03:09 +08:00
|
|
|
|
server: {
|
2026-02-20 20:07:14 +08:00
|
|
|
|
port,
|
|
|
|
|
|
host: true, // 监听 0.0.0.0,支持公网访问
|
|
|
|
|
|
allowedHosts: publicHost ? [publicHost] : undefined,
|
2026-02-20 20:03:09 +08:00
|
|
|
|
},
|
2026-02-20 20:07:14 +08:00
|
|
|
|
plugins: [
|
|
|
|
|
|
react(),
|
|
|
|
|
|
tailwindcss(),
|
|
|
|
|
|
// 云服务器:启动时打印公网访问地址
|
|
|
|
|
|
publicHost
|
|
|
|
|
|
? {
|
|
|
|
|
|
name: "log-public-url",
|
|
|
|
|
|
configureServer() {
|
|
|
|
|
|
return () => {
|
|
|
|
|
|
console.log(`\n ➜ 公网: http://${publicHost}:${port}/\n`);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
: undefined,
|
|
|
|
|
|
].filter(Boolean),
|
2026-02-17 01:28:04 +09:00
|
|
|
|
resolve: {
|
|
|
|
|
|
alias: {
|
|
|
|
|
|
"@": path.resolve(__dirname, "./src"),
|
|
|
|
|
|
},
|
feat: ClawPal v0.1 — Tauri desktop GUI for OpenClaw
4-page layout (Home, Recipes, Settings, Doctor) with sidebar nav
and integrated Chat panel powered by OpenClaw agent (--local).
- Home: status, agents overview, recommended recipes, recent activity
- Recipes: browse, preview diff, apply with params
- Settings: model profiles CRUD, chat model selection, provider catalog
- Doctor: diagnostics with auto-fix
- Chat: OpenClaw agent integration with session persistence,
agent selector, read-only advisory context injection
- Progressive data loading to avoid UI blocking
- API key resolution from OpenClaw agent auth-profiles
- Model catalog from openclaw CLI with cache
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 01:16:38 +09:00
|
|
|
|
},
|
|
|
|
|
|
});
|