@vostride/agent-qa-dashboard 0.1.11 → 0.1.13
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/dist/index.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2352,6 +2352,7 @@ var DashboardReporter = class {
|
|
|
2352
2352
|
if (!artifact || artifact.finalizedAt) return;
|
|
2353
2353
|
const memoryLog = this.redactValue(result.memoryLog);
|
|
2354
2354
|
if (memoryLog) {
|
|
2355
|
+
this.db.updateRun(runId, { memoryLog: JSON.stringify(memoryLog) });
|
|
2355
2356
|
this.db.stageRunArtifact(runId, { memory: { log: memoryLog } });
|
|
2356
2357
|
}
|
|
2357
2358
|
this.db.finalizeRunArtifact(runId);
|
|
@@ -2494,9 +2495,22 @@ var DashboardReporter = class {
|
|
|
2494
2495
|
childRunIds: []
|
|
2495
2496
|
};
|
|
2496
2497
|
for (const child of children) {
|
|
2497
|
-
|
|
2498
|
+
let rawLog = null;
|
|
2499
|
+
if (child.memoryLog) {
|
|
2500
|
+
try {
|
|
2501
|
+
rawLog = JSON.parse(child.memoryLog);
|
|
2502
|
+
} catch {
|
|
2503
|
+
rawLog = null;
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
if (!rawLog) {
|
|
2507
|
+
const childArtifact = this.db.getRunArtifact(child.id);
|
|
2508
|
+
const memory = childArtifact?.payload.memory;
|
|
2509
|
+
rawLog = isRecord(memory) ? memory.log : null;
|
|
2510
|
+
}
|
|
2511
|
+
if (!isRecord(rawLog)) continue;
|
|
2498
2512
|
try {
|
|
2499
|
-
const log =
|
|
2513
|
+
const log = rawLog;
|
|
2500
2514
|
aggregate.added += log.added ?? 0;
|
|
2501
2515
|
aggregate.confirmed += log.confirmed ?? 0;
|
|
2502
2516
|
aggregate.deprecated += log.deprecated ?? 0;
|