feat: release v1.0.1 CADWorld 网站与 LeKiwi 智能抓放
web-platform-ci / Standalone decision service (no cloud credentials) (push) Has been cancelled
web-platform-ci / TypeScript, lint, unit, build (push) Has been cancelled
web-platform-ci / Playwright E2E (push) Has been cancelled
lekiwi-compatibility / cpu-compatibility (push) Has been cancelled
web-platform-ci / Standalone decision service (no cloud credentials) (pull_request) Has been cancelled
web-platform-ci / TypeScript, lint, unit, build (pull_request) Has been cancelled
web-platform-ci / Playwright E2E (pull_request) Has been cancelled
lekiwi-compatibility / cpu-compatibility (pull_request) Has been cancelled

集成同源 BYOK 会话隔离、精简模型设置、官方订阅入口和 HTTPS 发布运维;保留本地训练/调参与控制能力。同步 npm 版本及 CHANGELOG,记录公网真实 API 验收仍待用户凭据。
This commit is contained in:
2026-09-24 09:57:41 +08:00
parent 3ad29356c9
commit f3a8a38acd
194 changed files with 32918 additions and 236 deletions
+45 -6
View File
@@ -77,25 +77,64 @@ function localPyodideAssets(): Plugin {
};
}
export default defineConfig({
export default defineConfig(({ mode }) => ({
root: 'web_platform',
base: './',
plugins: [react(), localPyodideAssets(), previewCacheHeaders()],
plugins: [
react(),
localPyodideAssets(),
previewCacheHeaders(),
...(mode === 'website'
? [
{
name: 'website-html',
transformIndexHtml(html: string) {
return html
.replace(
'<title>MuJoCo Web 仿真平台</title>',
'<title>CADWorld Sim · 在线机器人仿真</title>',
)
.replace('本地机器人仿真', '浏览器机器人仿真')
.replace('正在启动本地仿真工作台', '正在启动在线仿真工作台');
},
},
]
: []),
],
publicDir: 'public',
build: {
outDir: '../web-platform-dist',
outDir: mode === 'website' ? '../website-dist' : '../web-platform-dist',
emptyOutDir: true,
target: 'es2022',
rollupOptions: {
input: {
main: resolve(dirname(fileURLToPath(import.meta.url)), 'index.html'),
tuning: resolve(dirname(fileURLToPath(import.meta.url)), 'tuning.html'),
...(mode === 'website'
? {}
: { tuning: resolve(dirname(fileURLToPath(import.meta.url)), 'tuning.html') }),
},
},
modulePreload: { polyfill: false },
},
worker: { format: 'es' },
server: { open: true, fs: { allow: ['..'] } },
server: {
open: mode !== 'website',
fs: { allow: ['..'] },
proxy:
mode === 'website'
? {
'/api/decision/v1': { target: process.env.CADWORLD_DEV_API ?? 'http://127.0.0.1:8768' },
}
: undefined,
},
preview: {
proxy:
mode === 'website'
? {
'/api/decision/v1': { target: process.env.CADWORLD_DEV_API ?? 'http://127.0.0.1:8768' },
}
: undefined,
},
test: {
globals: true,
environment: 'jsdom',
@@ -122,4 +161,4 @@ export default defineConfig({
thresholds: { lines: 85, functions: 75, branches: 70, statements: 80 },
},
},
});
}));