Max Avatar can now call Max API's /sessions endpoints: session.ts keeps the access token in memory after login (never persisted, cleared on logout, same lifecycle as the existing email/keys state), a new sessionsClient.ts wraps the 4 endpoints with the Bearer header, and index.ts exposes them as sessions:create/get/send-objective-message/ confirm-objective IPC handlers (input-validated, requireLoggedIn() gated) surfaced to the renderer as window.api.sessions.*. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
94 lines
3.1 KiB
JSON
94 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",
|
|
"@fontsource/inter": "^5.3.0",
|
|
"@fontsource/jetbrains-mono": "^5.3.0",
|
|
"dotenv": "^18.0.8",
|
|
"electron-updater": "^6.8.11",
|
|
"lucide-react": "^1.66.0",
|
|
"pdf-lib": "^1.17.1",
|
|
"react-markdown": "^10.1.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"three": "^0.186.1",
|
|
"zustand": "^5.0.16"
|
|
},
|
|
"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/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"
|
|
}
|
|
}
|