Add OpenAI-powered Home Assistant Analysis Tool

- Implemented comprehensive AI-driven system analysis using OpenAI's GPT-4
- Created interactive CLI tool for Home Assistant device and system insights
- Added support for standard and custom prompt-based analysis
- Integrated MCP server data collection with intelligent AI processing
- Updated package.json with new OpenAI and XML dependencies
- Enhanced README with detailed OpenAI integration documentation
This commit is contained in:
jango-blockchained
2025-02-01 12:35:13 +01:00
parent 9037cffcfe
commit 675f6e3942
3 changed files with 658 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
"test": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs --coverage",
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs --watch",
"test:openai": "tsx openai_test.ts",
"lint": "eslint src --ext .ts",
"lint:fix": "eslint src --ext .ts --fix",
"prepare": "npm run build",
@@ -21,6 +22,8 @@
"dependencies": {
"@digital-alchemy/core": "^24.11.4",
"@digital-alchemy/hass": "^24.11.4",
"@types/xmldom": "^0.1.34",
"@xmldom/xmldom": "^0.9.7",
"ajv": "^8.12.0",
"dotenv": "^16.3.1",
"express": "^4.18.2",
@@ -41,6 +44,8 @@
"@types/uuid": "^9.0.8",
"@types/ws": "^8.5.10",
"jest": "^29.7.0",
"node-fetch": "^3.3.2",
"openai": "^4.82.0",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"tsx": "^4.7.0",
@@ -48,4 +53,4 @@
},
"author": "Jango Blockchained",
"license": "MIT"
}
}