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
+16
View File
@@ -0,0 +1,16 @@
import { cpSync, existsSync, mkdirSync, rmSync } from 'node:fs'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
const frontendRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..')
const moduleRoot = resolve(frontendRoot, '..', 'aether-vscodex')
const vueBuild = resolve(moduleRoot, 'web', 'dist')
const destination = resolve(frontendRoot, 'public', 'aether-vscodex')
if (!existsSync(resolve(vueBuild, 'index.html'))) {
throw new Error(`aether-vscodex Vue build was not found at ${vueBuild}`)
}
rmSync(destination, { recursive: true, force: true })
mkdirSync(destination, { recursive: true })
cpSync(vueBuild, destination, { recursive: true })