@defai.digital/automatosx 6.2.5 → 6.2.6
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 +33 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [6.2.6] - 2025-10-31
|
|
6
|
+
|
|
7
|
+
### 🔧 Fixes
|
|
8
|
+
|
|
9
|
+
**Cache Prediction Division by Zero (Bug #33)**
|
|
10
|
+
|
|
11
|
+
Through ultra-deep systematic analysis of all division operations in the codebase:
|
|
12
|
+
|
|
13
|
+
- **Bug #33 (MEDIUM)**: Division by zero in adaptive cache prediction (`src/core/adaptive-cache.ts:244`)
|
|
14
|
+
- **Problem**: `intervals.reduce(...) / intervals.length` can divide by zero when timestamps array contains only undefined values
|
|
15
|
+
- **Impact**: NaN values in predictive cache scoring, corrupting cache access predictions
|
|
16
|
+
- **Root Cause**: Even with `timestamps.length >= 2` check, the intervals array could be empty if all timestamps were undefined
|
|
17
|
+
- **Fix**: Added guard to check `intervals.length === 0` after building intervals array, skip prediction for insufficient data
|
|
18
|
+
- **Pattern**: Consistent with defensive division guards from Bugs #16, #19, #31
|
|
19
|
+
|
|
20
|
+
### 🔍 Analysis Methodology
|
|
21
|
+
|
|
22
|
+
- **Ultra-deep grep analysis**: Systematically found and verified all 9 division operations in `src/core/`
|
|
23
|
+
- **Verified safe operations**: provider-metrics-tracker.ts (4 divisions), AnalyticsAggregator.ts (3 divisions)
|
|
24
|
+
- **Fixed vulnerable operation**: adaptive-cache.ts (1 division)
|
|
25
|
+
|
|
26
|
+
### 📊 Impact
|
|
27
|
+
|
|
28
|
+
- **Users affected**: Users with adaptive caching enabled (performance feature)
|
|
29
|
+
- **Breaking changes**: None
|
|
30
|
+
- **Migration**: None required - automatic graceful skip for invalid prediction data
|
|
31
|
+
|
|
32
|
+
### ✅ Testing
|
|
33
|
+
|
|
34
|
+
- All 2,281 unit tests passing
|
|
35
|
+
- TypeScript compilation successful
|
|
36
|
+
- Build successful
|
|
37
|
+
|
|
5
38
|
## [6.2.5] - 2025-10-31
|
|
6
39
|
|
|
7
40
|
### 🔧 Fixes
|