feat(web): workspaces, connect and status pages plus the full chat experience
- workspaces list + new-workspace flow (add -> ensure -> navigate), server context bar - connect: manual/pair-code redeem, QR scan with paste fallback, paired summary, disconnect - status: info/health/resources/models/devices/connection cards with 3s visible-only polling - chat: 3/2/1-column layout, session tree, virtualized stream, tool/thinking/todo/batch blocks, composer with queue chips and abort, subagents/todo/tasks panel, attention + diff review modals, history pagination merged with live entries - canonical reducer reused via @protocol alias (no duplicated types) - 63 vitest tests, typecheck + build green, zh/en parity at 411 keys
This commit is contained in:
1 parent
2e5d6d5006
commit
721661177c
61 files changed
+10931
-355
No files matched your search
@@ -3,15 +3,22 @@ import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
const DAEMON = "http://127.0.0.1:7676";
|
||||
const REPO_ROOT = path.resolve(import.meta.dirname, "..");
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(import.meta.dirname, "src"),
|
||||
// Canonical wire types + reducer live in the daemon package; import them
|
||||
// instead of keeping a drifting copy under src/lib/protocol.ts.
|
||||
"@protocol": path.resolve(REPO_ROOT, "src/protocol"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
// The @protocol alias points outside web/, so Vite must be allowed to
|
||||
// serve the repo root (daemon protocol files) in dev.
|
||||
fs: { allow: [REPO_ROOT] },
|
||||
port: 5173,
|
||||
strictPort: false,
|
||||
proxy: {
|
||||
|
||||
Reference in new issue
Block a user