45bfae6e94
Initial import of all source code, config, and README assets: the packages workspace (cli, core, server, web, docs, landing, skills), build scripts, tooling config, and CI workflows. Includes the data-layout revision made on this branch: the local data root defaults to ~/.penguin/data (PENGUIN_HOME still overrides; the installer keeps its binaries in ~/.penguin), and every Agent lives under <project>/agents/<agent>/ — path helpers, the three agent-enumeration scans, the system prompt, built-in Skills, tests and docs all follow the new layout. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ihk8iQuo3kv2aPjAYEPuR
26 lines
850 B
TypeScript
26 lines
850 B
TypeScript
/**
|
|
* Vite config: React SPA + Tailwind CSS 4.
|
|
*
|
|
* Dev server listens on 7365; `/api` is proxied to the local Web server (defaults to 127.0.0.1:7364,
|
|
* overridable via PENGUIN_API_PROXY). SSE (text/event-stream) passes through http-proxy transparently, no
|
|
* special config needed.
|
|
* The vitest config is kept separate in vitest.config.ts (its embedded vite 5 types conflict with this
|
|
* package's vite 7 plugin types, hence the separate file to avoid the clash).
|
|
*/
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: 7365,
|
|
proxy: {
|
|
"/api": {
|
|
target: process.env.PENGUIN_API_PROXY ?? "http://127.0.0.1:7364",
|
|
changeOrigin: false,
|
|
},
|
|
},
|
|
},
|
|
});
|