Files
archie/ui/vite.config.ts
T
sam 66220e1752 feat(runs,deliveries): the decision trail, the composer channel, and the dashboard that shows them (#1996, #1984)
GET /api/runs/{id} assembles a run's trail from rows already kept: the event
and trigger that started it, each workflow step, and each model and tool call
from the agent's journal. Investigations end by notifying their findings on
the composer, whose messages are read from a cursor with a live stream that
only says when to read. The binary serves its own SPA entry, archie.html,
calling only the new API. The investigate prompt now treats the event as a
claim to check against what it measures.
2026-11-15 23:36:42 +11:00

35 lines
1.2 KiB
TypeScript

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import tailwindcss from "@tailwindcss/vite";
import spotnote from "spotnote";
export default defineConfig({
plugins: [vue(), tailwindcss(), spotnote()],
resolve: {
alias: {
"@": new URL("./src", import.meta.url).pathname,
},
},
base: "/",
build: {
outDir: "dist",
emptyOutDir: true,
rollupOptions: {
// index.html is the old services' dashboard; archie.html is the single
// binary's, which calls only the new API.
input: { main: "index.html", archie: "archie.html" },
},
},
server: {
// Proxies the API to a locally running archie-ui (the process that serves
// the dashboard) so the frontend can be developed without rebuilding Go.
// changeOrigin stays false: archie-ui refuses a mutation whose Origin
// does not match its Host, and the browser's Origin is this dev server.
proxy: {
"/api": { target: "http://127.0.0.1:8484", changeOrigin: false },
"/health": { target: "http://127.0.0.1:8484", changeOrigin: false },
"/webhooks": { target: "http://127.0.0.1:8484", changeOrigin: false },
},
},
});