ai-error-solution 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -88
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,88 +1,91 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [1.
|
|
9
|
-
|
|
10
|
-
### Fixed
|
|
11
|
-
- Removed self-dependency issue in package.json
|
|
12
|
-
- Cleaned up unnecessary documentation files
|
|
13
|
-
- Package optimization
|
|
14
|
-
|
|
15
|
-
### Changed
|
|
16
|
-
- Streamlined package structure for npm distribution
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.1.2] - 2025-12-31
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Removed self-dependency issue in package.json
|
|
12
|
+
- Cleaned up unnecessary documentation files
|
|
13
|
+
- Package optimization
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Streamlined package structure for npm distribution
|
|
17
|
+
- Added author information to package.json
|
|
18
|
+
- Updated repository URL format
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## [1.0.0] - 2025-12-31
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
- Initial release of ai-error-solution
|
|
26
|
+
- Core error handling with `fixError()` function
|
|
27
|
+
- OpenAI integration using native curl (zero dependencies)
|
|
28
|
+
- Middleware pattern with `initAutoErrorSolution()` for one-time API key setup
|
|
29
|
+
- Beautiful console logging with colors and emojis
|
|
30
|
+
- Support for ESM (ES Modules)
|
|
31
|
+
- Error analysis with AI-powered:
|
|
32
|
+
- Plain-English explanations
|
|
33
|
+
- Likely causes identification
|
|
34
|
+
- Suggested fixes with code snippets
|
|
35
|
+
- Relevant documentation links
|
|
36
|
+
- Timeout handling and retry mechanism
|
|
37
|
+
- Silent mode for programmatic access to analysis results
|
|
38
|
+
- Function wrapper utility `wrapWithErrorHandler()`
|
|
39
|
+
- Global error handler setup with `setupGlobalHandler()`
|
|
40
|
+
- Graceful failure handling when API calls fail
|
|
41
|
+
- Comprehensive README with examples
|
|
42
|
+
- MIT License
|
|
43
|
+
- Publishing guide
|
|
44
|
+
|
|
45
|
+
### Technical Details
|
|
46
|
+
- Node.js 18+ support
|
|
47
|
+
- Zero npm dependencies
|
|
48
|
+
- Uses native `child_process` with curl
|
|
49
|
+
- ESM-first architecture
|
|
50
|
+
- Production-ready error handling
|
|
51
|
+
- Privacy-focused (no telemetry, no data storage)
|
|
52
|
+
|
|
53
|
+
### Documentation
|
|
54
|
+
- Complete API reference
|
|
55
|
+
- Usage examples
|
|
56
|
+
- Environment setup guide
|
|
57
|
+
- Troubleshooting section
|
|
58
|
+
- Best practices and disclaimers
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## [Unreleased]
|
|
63
|
+
|
|
64
|
+
### Planned Features
|
|
65
|
+
- TypeScript type definitions (.d.ts files)
|
|
66
|
+
- Support for custom AI prompts
|
|
67
|
+
- Batch error analysis
|
|
68
|
+
- Local caching of similar errors
|
|
69
|
+
- Support for other LLM providers (Anthropic, etc.)
|
|
70
|
+
- Configuration file support (.autoerrorrc)
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Version History
|
|
75
|
+
|
|
76
|
+
- **1.1.2** (2025-12-31) - Bug fixes and optimization
|
|
77
|
+
- **1.1.1** (2025-12-31) - Already published (updated author info)
|
|
78
|
+
- **1.0.0** (2025-12-31) - Initial release
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Contributing
|
|
83
|
+
|
|
84
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.
|
|
85
|
+
|
|
86
|
+
## Support
|
|
87
|
+
|
|
88
|
+
For issues and questions, please visit:
|
|
89
|
+
- GitHub Issues: https://github.com/Rashidqf/ai-error-solution/issues
|
|
90
|
+
- npm Page: https://www.npmjs.com/package/ai-error-solution
|
|
91
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-error-solution",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Lightweight Node.js error handler that uses OpenAI to provide explanations, causes, fixes, and documentation links for runtime errors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -23,11 +23,14 @@
|
|
|
23
23
|
"runtime-errors",
|
|
24
24
|
"stack-trace"
|
|
25
25
|
],
|
|
26
|
-
"author":
|
|
26
|
+
"author": {
|
|
27
|
+
"name": "Rashid",
|
|
28
|
+
"url": "https://github.com/Rashidqf"
|
|
29
|
+
},
|
|
27
30
|
"license": "MIT",
|
|
28
31
|
"repository": {
|
|
29
32
|
"type": "git",
|
|
30
|
-
"url": "https://github.com/Rashidqf/ai-error-solution.git"
|
|
33
|
+
"url": "git+https://github.com/Rashidqf/ai-error-solution.git"
|
|
31
34
|
},
|
|
32
35
|
"bugs": {
|
|
33
36
|
"url": "https://github.com/Rashidqf/ai-error-solution/issues"
|