micro-models-agent 0.56.4 → 0.56.5
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 +5 -0
- package/dist/main.js +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to Micro Models Agent (MMA) will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.56.5] - 2026-08-27
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- **Hallucination**: `FactualCheck` now receives deleted files from `ConsistencyCheck` — no longer false-positives on files that were intentionally deleted in the same session
|
|
11
|
+
|
|
7
12
|
## [0.56.4] - 2026-08-27
|
|
8
13
|
|
|
9
14
|
### Fixed
|
package/dist/main.js
CHANGED
|
@@ -15050,12 +15050,15 @@ class FactualCheck {
|
|
|
15050
15050
|
for (const f of files)
|
|
15051
15051
|
this.knownFiles.add(f);
|
|
15052
15052
|
}
|
|
15053
|
-
validate(response) {
|
|
15053
|
+
validate(response, deletedFiles) {
|
|
15054
15054
|
const filePaths = this.extractFilePaths(response);
|
|
15055
15055
|
if (filePaths.length === 0)
|
|
15056
15056
|
return { status: "pass" };
|
|
15057
|
+
const deletedBasenames = deletedFiles ? new Set([...deletedFiles].map((p) => p.split(/[/\\]/).pop() ?? p)) : undefined;
|
|
15057
15058
|
const nonExistent = [];
|
|
15058
15059
|
for (const fp of filePaths) {
|
|
15060
|
+
if (deletedBasenames?.has(fp))
|
|
15061
|
+
continue;
|
|
15059
15062
|
if (!this.pathExists(fp)) {
|
|
15060
15063
|
nonExistent.push(fp);
|
|
15061
15064
|
}
|
|
@@ -15303,7 +15306,8 @@ class HallucinationDetector {
|
|
|
15303
15306
|
if (confidenceResult.status === "retry" || confidenceResult.status === "block") {
|
|
15304
15307
|
return confidenceResult;
|
|
15305
15308
|
}
|
|
15306
|
-
const
|
|
15309
|
+
const deletedFiles = new Set(this.consistency.getDeletedFiles());
|
|
15310
|
+
const factualResult = this.factual?.validate(response, deletedFiles);
|
|
15307
15311
|
if (factualResult && factualResult.status !== "pass") {
|
|
15308
15312
|
return factualResult;
|
|
15309
15313
|
}
|