SonarQube dev scan (localhost:9000, project max-app) flagged 2 bugs, 6 vulnerabilities and 3 code smells; quality gate now passes. - visionCapture.ts: .sort() without a compare function relied on locale- dependent default ordering — fixed with localeCompare. - index.html: added missing lang="fr" on <html>; documented why style-src keeps 'unsafe-inline' (React/mermaid inline styles) while script-src stays strictly 'self'. - drawingWindow.ts/exerciseWindow.ts/windowBridge.ts: replaced Math.random() with crypto.randomUUID() for IPC correlation ids (flagged as insecure PRNG, even though these ids are never security-sensitive). - translate.ts/deleteFileOrFolder.ts: replaced two regexes flagged for superlinear backtracking with plain indexOf/loop-based equivalents. - App.tsx: documented with NOSONAR why the whole-window drag surface isn't given fake keyboard interactivity (no keyboard gesture equivalent to "drag the window"; would also break tab order). - drawingWindow.ts: extracted the near-identical request/ack/timeout boilerplate shared by revealShape() and playCaption() into waitForAck(), fixing a new-code duplication-density quality gate failure surfaced once these lines were touched. Also fixes the Gitea CI "Security audit" step (npm audit --audit-level=high): pptxgenjs@4.0.1 pinned image-size to ^1.2.1, within the high-severity DoS range (GHSA-5p2g-fcmc-qvqq / GHSA-w3rx-r6r6-pgpr, affects <=2.0.2). Added an npm "overrides" entry forcing image-size to ^2.0.4 under pptxgenjs. The affected code path (image embedding) isn't even used by createPowerpoint.ts, and existing tests still pass. Remaining audit findings are all moderate, dev-tooling-only (eslint/electron-builder's minimatch/glob chain). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
96 lines
3.1 KiB
JSON
96 lines
3.1 KiB
JSON
{
|
|
"name": "forge-avatar",
|
|
"version": "1.0.0",
|
|
"description": "Avatar de bureau IA Max, assistant vocal avec modes Coach et Assistant",
|
|
"main": "./out/main/index.js",
|
|
"author": "Vandal William",
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
},
|
|
"scripts": {
|
|
"format": "prettier --write .",
|
|
"lint": "eslint --cache .",
|
|
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
|
|
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
|
|
"typecheck": "npm run typecheck:node && npm run typecheck:web",
|
|
"start": "electron-vite preview",
|
|
"dev": "electron-vite dev",
|
|
"build": "npm run typecheck && electron-vite build",
|
|
"postinstall": "install-electron && electron-builder install-app-deps",
|
|
"build:unpack": "npm run build && electron-builder --dir",
|
|
"build:win": "npm run build && electron-builder --win",
|
|
"build:mac": "electron-vite build && electron-builder --mac",
|
|
"build:linux": "electron-vite build && electron-builder --linux",
|
|
"test": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "npm run build && playwright test",
|
|
"prepare": "husky"
|
|
},
|
|
"overrides": {
|
|
"pptxgenjs": {
|
|
"image-size": "^2.0.4"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx}": [
|
|
"node node_modules/eslint/bin/eslint.js --fix",
|
|
"node node_modules/prettier/bin/prettier.cjs --write"
|
|
],
|
|
"*.{json,md,yml,yaml}": [
|
|
"node node_modules/prettier/bin/prettier.cjs --write"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@electron-toolkit/preload": "^3.0.2",
|
|
"@electron-toolkit/utils": "^4.0.0",
|
|
"cheerio": "^1.2.0",
|
|
"docx": "^9.13.0",
|
|
"dotenv": "^18.0.8",
|
|
"electron-updater": "^6.8.11",
|
|
"mammoth": "^1.13.0",
|
|
"mermaid": "^12.2.0",
|
|
"pdf-lib": "^1.17.1",
|
|
"pdf-parse": "^1.1.1",
|
|
"pptxgenjs": "^4.0.1",
|
|
"roughjs": "^4.6.6",
|
|
"three": "^0.186.1"
|
|
},
|
|
"devDependencies": {
|
|
"@electron-toolkit/eslint-config-prettier": "^3.0.1",
|
|
"@electron-toolkit/eslint-config-ts": "^4.0.0",
|
|
"@electron-toolkit/tsconfig": "^2.0.0",
|
|
"@playwright/test": "^1.64.1",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@testing-library/user-event": "^14.6.8",
|
|
"@types/node": "^24.19.2",
|
|
"@types/pdf-parse": "^1.1.5",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@types/three": "^0.186.0",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"@vitest/coverage-v8": "^5.0.5",
|
|
"electron": "^44.7.2",
|
|
"electron-builder": "^26.15.3",
|
|
"electron-playwright-helpers": "^3.1.2",
|
|
"electron-vite": "^6.0.0",
|
|
"eslint": "^9.39.5",
|
|
"eslint-plugin-import": "^2.32.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
"eslint-plugin-security": "^4.2.0",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^30.1.3",
|
|
"lint-staged": "^17.6.0",
|
|
"playwright": "^1.64.1",
|
|
"prettier": "^3.9.10",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^8.3.4",
|
|
"vitest": "^5.0.5"
|
|
}
|
|
}
|