Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
add xspace-agent/xspace-agent/agent-voice-chat/packages/widget/vite.config.ts
overstepping9f3421d7de2b
diff --git a/xspace-agent/xspace-agent/agent-voice-chat/packages/widget/vite.config.ts b/xspace-agent/xspace-agent/agent-voice-chat/packages/widget/vite.config.tsnew file mode 100644index 000000000..56b491a4f--- /dev/null+++ b/xspace-agent/xspace-agent/agent-voice-chat/packages/widget/vite.config.ts@@ -0,0 +1,43 @@+// SPDX-License-Identifier: Apache-2.0+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent)++import { defineConfig } from 'vite';+import { resolve } from 'path';++export default defineConfig({+ build: {+ lib: {+ entry: resolve(__dirname, 'src/index.ts'),+ name: 'AgentVoiceChat',+ formats: ['iife', 'es'],+ fileName: (format) => {+ if (format === 'iife') return 'agent-voice-chat.min.js';+ return 'agent-voice-chat.esm.js';+ },+ },+ rollupOptions: {+ // Socket.IO is loaded externally for IIFE, bundled for ESM+ external: (id) => {+ if (id === 'socket.io-client') return true;+ return false;+ },+ output: {+ exports: 'named',+ globals: {+ 'socket.io-client': 'io',+ },+ },+ },+ minify: 'terser',+ terserOptions: {+ compress: { drop_console: false, passes: 2 },+ },+ sourcemap: true,+ target: 'es2020',+ },+ define: {+ __VERSION__: JSON.stringify(process.env.npm_package_version || '1.0.0'),+ },+});++