mirror of
https://github.com/saltbo/agent-kanban.git
synced 2026-09-19 09:01:47 +08:00
a2fa54a729
Replace the v1 Agent/Machine runtime and CLI architecture with the v2 Resource Server, AMA-backed projections, task lifecycle, session observation, BDD specifications, and a single-package layered codebase. BREAKING CHANGE: remove the v1 CLI, internal Agent/Machine runtime entities, workspace layout, and legacy runtime coordination APIs.
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import { execSync } from "node:child_process";
|
|
import path from "node:path";
|
|
import { cloudflare } from "@cloudflare/vite-plugin";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
const gitSha = execSync("git rev-parse --short HEAD").toString().trim();
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss(), cloudflare()],
|
|
server: {
|
|
port: 6265,
|
|
// Cloud smoke runs expose the dev server through a cloudflared quick
|
|
// tunnel so sandbox-hosted agents can call the AK API. A named tunnel
|
|
// (e.g. bodev.agent-kanban.dev) gives a stable dev origin.
|
|
allowedHosts: [".trycloudflare.com", ".agent-kanban.dev"],
|
|
},
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(gitSha),
|
|
},
|
|
resolve: {
|
|
dedupe: ["react", "react-dom", "react/jsx-runtime", "react/jsx-dev-runtime"],
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
"@shared": path.resolve(__dirname, "./shared"),
|
|
"@server": path.resolve(__dirname, "./server"),
|
|
},
|
|
},
|
|
});
|