feat(vscodex): add remote Codex collaboration module

This commit is contained in:
fawney
2026-09-01 20:25:35 +08:00
parent 5a69cfe40d
commit 30a75832f8
102 changed files with 38569 additions and 11 deletions
+45
View File
@@ -0,0 +1,45 @@
/// <reference types="vitest/config" />
import { fileURLToPath, URL } from "node:url";
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";
const relayTarget = "http://127.0.0.1:8787";
export default defineConfig({
// Relative assets let the same build run at the local relay root and under
// Aether's /aether-vscodex/ static subpath.
base: "./",
plugins: [vue()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
fs: {
allow: [fileURLToPath(new URL("..", import.meta.url))],
},
proxy: {
"/api": {
target: relayTarget,
changeOrigin: true,
},
"/ws": {
target: relayTarget.replace("http", "ws"),
changeOrigin: true,
ws: true,
},
},
},
build: {
outDir: "dist",
emptyOutDir: true,
assetsInlineLimit: 0,
},
test: {
environment: "jsdom",
include: ["tests/**/*.test.ts"],
},
});