From 81289781bfed9e3568ea9482d34106c4212d50cf Mon Sep 17 00:00:00 2001 From: Network Monitor Bot Date: Tue, 19 Aug 2025 19:41:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix:=20Corriger=20les=20chemins?= =?UTF-8?q?=20de=20compilation=20dans=20package.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Mettre à jour main et bin vers dist/cli.js - Corriger npm start pour pointer vers le bon fichier compilé - Fix erreur de typage TypeScript dans commands/index.ts L'application se lance maintenant correctement! --- .claude/settings.local.json | 6 +++++- .gitignore | 1 + package.json | 6 +++--- src/commands/index.ts | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index b945af5..764dea0 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -3,7 +3,11 @@ "allow": [ "Bash(mkdir:*)", "Bash(git add:*)", - "Bash(git reset:*)" + "Bash(git reset:*)", + "Bash(git rm:*)", + "Bash(git push:*)", + "Bash(npm run build:*)", + "Bash(npm start)" ], "deny": [], "ask": [] diff --git a/.gitignore b/.gitignore index 3431528..438ca4e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Dossier d'exemple (ne pas committer) .divers +.claude # Dépendances node_modules/ diff --git a/package.json b/package.json index 8df4c98..a9eb2f5 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,14 @@ "name": "neuraterm", "version": "1.0.0", "description": "Terminal IA professionnel avec support multi-providers (ChatGPT, Mistral) et suivi des coûts", - "main": "dist/src/cli.js", + "main": "dist/cli.js", "type": "module", "bin": { - "neuraterm": "dist/src/cli.js" + "neuraterm": "dist/cli.js" }, "scripts": { "build": "tsc", - "start": "node dist/src/cli.js", + "start": "node dist/cli.js", "dev": "ts-node --esm src/cli.ts", "test": "jest", "lint": "eslint src", diff --git a/src/commands/index.ts b/src/commands/index.ts index 0325b4f..825e910 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -251,7 +251,7 @@ export class CommandProcessor { model: this.config.ai.mistral?.model || 'mistral-large-latest', baseUrl: this.config.ai.mistral?.baseUrl }, - defaultProvider: keys.openai ? 'openai' : 'mistral' + defaultProvider: (keys.openai ? 'openai' : 'mistral') as 'openai' | 'mistral' }; // Recréer le client IA