- All 8 vitest configs now default maxWorkers to \`cpus().length - 1\` instead of the arbitrary \`Math.min(4, …)\` cap. Respects an explicit VITEST_MAX_WORKERS override for constrained environments (CI, laptops on battery). CLI keeps \`fileParallelism: false\` — audit found real shared state (process.chdir in agent-import, dist/ races in build-exe suites) that needs refactoring before we can flip it. - packages/dashboard: move the mobile build-output smoke test (which invokes \`pnpm build:client\` via execSync, ~3s per run) into a dedicated \`test:build\` script so \`pnpm test\` isn't gated by it. A matching root script keeps CI wiring simple. - Root: bump --workspace-concurrency from 2 → 4 so core/engine/cli/ desktop can pipeline against dashboard's tail. - Drop the now-redundant VITEST_MAX_WORKERS=4 prefix from the root scripts; the per-package configs pick up cpu count themselves. Dashboard test suite: 182s → 38s (5x) on a 10-core machine. Full workspace run: ~3m15 → 2m29. All tests still pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
94 lines
2.9 KiB
JSON
94 lines
2.9 KiB
JSON
{
|
|
"name": "@fusion/dashboard",
|
|
"version": "0.1.0",
|
|
"license": "MIT",
|
|
"description": "Fusion dashboard: React UI and HTTP API server for monitoring and controlling the Fusion AI coding agent.",
|
|
"homepage": "https://github.com/Runfusion/Fusion#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Runfusion/Fusion",
|
|
"directory": "packages/dashboard"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/Runfusion/Fusion/issues"
|
|
},
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"source": "./src/index.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./planning": {
|
|
"types": "./src/planning.ts",
|
|
"import": "./src/planning.ts"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "vite build && tsc",
|
|
"build:client": "vite build",
|
|
"dev": "pnpm build && pnpm typecheck && pnpm dev:serve",
|
|
"dev:serve": "vite dev",
|
|
"postinstall": "chmod +x node_modules/.pnpm/node-pty*/node_modules/node-pty/prebuilds/darwin-*/spawn-helper node_modules/.pnpm/node-pty*/node_modules/node-pty/prebuilds/darwin-*/*.node 2>/dev/null || true",
|
|
"test": "vitest run --silent=passed-only --reporter=dot --exclude '**/build-output.test.ts'",
|
|
"test:build": "vitest run --silent=passed-only --reporter=dot app/__tests__/build-output.test.ts",
|
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.app.json"
|
|
},
|
|
"dependencies": {
|
|
"@codemirror/basic-setup": "^0.20.0",
|
|
"@codemirror/lang-css": "^6.3.1",
|
|
"@codemirror/lang-javascript": "^6.2.3",
|
|
"@codemirror/lang-json": "^6.0.1",
|
|
"@codemirror/lang-markdown": "^6.3.2",
|
|
"@codemirror/state": "^6.5.2",
|
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
"@codemirror/view": "^6.36.4",
|
|
"@fusion/core": "workspace:*",
|
|
"@fusion/engine": "workspace:*",
|
|
"@mariozechner/pi-coding-agent": "^0.70.0",
|
|
"@types/multer": "^2.1.0",
|
|
"@xterm/addon-fit": "^0.10.0",
|
|
"@xterm/addon-search": "^0.15.0",
|
|
"@xterm/addon-web-links": "^0.11.0",
|
|
"@xterm/addon-webgl": "^0.18.0",
|
|
"@xterm/xterm": "^5.5.0",
|
|
"archiver": "^7.0.1",
|
|
"express": "^5.1.0",
|
|
"ioredis": "^5.6.0",
|
|
"lucide-react": "^1.7.0",
|
|
"multer": "^2.1.1",
|
|
"node-pty": "^1.1.0-beta22",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-markdown": "^10.1.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.5.0",
|
|
"@types/archiver": "^7.0.0",
|
|
"@types/express": "^5.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@types/ws": "^8.5.0",
|
|
"@vitejs/plugin-react": "^4.3.0",
|
|
"@vitest/coverage-v8": "^3.1.0",
|
|
"jsdom": "^29.0.1",
|
|
"tinyrainbow": "^2.0.0",
|
|
"typescript": "^5.7.0",
|
|
"vite": "^6.0.0",
|
|
"vitest": "^3.1.0"
|
|
},
|
|
"private": true
|
|
}
|